diff --git a/backend/app/cache/cache.py b/backend/app/cache/cache.py index 9bb445f..95a08ed 100644 --- a/backend/app/cache/cache.py +++ b/backend/app/cache/cache.py @@ -172,7 +172,7 @@ def scrap_steam_profile(self, comment, reddit_comment): logging.info('Games list visible: {}.'.format(steam_user.games_visible)) level = self.steam.get_level(steam_user.steam_id) - if level is None: + if level is None and steam_user.public_profile: self.commit_not_scrapped_steam_user(steam_user) return steam_user.level = level diff --git a/backend/config.py b/backend/config.py index 53f345e..77967ac 100644 --- a/backend/config.py +++ b/backend/config.py @@ -9,7 +9,7 @@ class RedditConfig: CLIENT_SECRET = os.environ['GOG_PICKER_REDDIT_CLIENT_SECRET'] USERNAME = os.environ['GOG_PICKER_REDDIT_USERNAME'] PASSWORD = os.environ['GOG_PICKER_REDDIT_PASSWORD'] - USER_AGENT = 'python:gog-picker:v0.14.0 (by /u/izdwuut)' + USER_AGENT = 'python:gog-picker:v0.14.1 (by /u/izdwuut)' NOT_ENTERING = 'not entering' MIN_KARMA = 300 diff --git a/backend/gog-picker.wsgi b/backend/gog-picker.wsgi index 197a9de..3bdfea2 100644 --- a/backend/gog-picker.wsgi +++ b/backend/gog-picker.wsgi @@ -1,10 +1,6 @@ -#!/usr/bin/python +#!/usr/bin/python3 import sys -activate_this = '/var/www/gog-picker-backend/venv/bin/activate' -with open(activate_this) as file_: - exec(file_.read(), dict(__file__=activate_this)) - sys.path.insert(0,"/var/www/gog-picker-backend/") from app import create_app diff --git a/frontend/src/app/results/results.component.html b/frontend/src/app/results/results.component.html index 6cf1de7..d943e95 100644 --- a/frontend/src/app/results/results.component.html +++ b/frontend/src/app/results/results.component.html @@ -8,6 +8,7 @@

  1. Check winners post history.
  2. Check if a redditor still participates in a drawing (a comment is not deleted or edited).
  3. +
  4. Flair winners.
  5. Send games!
diff --git a/frontend/src/index.html b/frontend/src/index.html index 5132854..6dbc23b 100644 --- a/frontend/src/index.html +++ b/frontend/src/index.html @@ -12,7 +12,7 @@