Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
izdwuut committed Feb 29, 2020
2 parents 634e025 + 59c63c7 commit e5d2b6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/app/cache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from prawcore.exceptions import ServerError
from time import sleep
from tqdm import tqdm
from praw.models import MoreComments

cache = Blueprint('cache', __name__, url_prefix='/cache')

Expand Down Expand Up @@ -204,7 +205,7 @@ def delete_comment_from_db(self, comment):
db.session.flush()

def filter_comment(self, comment):
if comment.author and self.reddit.is_user_special(comment.author.name):
if isinstance(comment, MoreComments) or (comment.author and self.reddit.is_user_special(comment.author.name)):
return
logging.info('Processing comment {}. Thread: {}.'.format(comment.id, comment.submission.url))
if self.reddit.is_deleted(comment):
Expand Down
2 changes: 1 addition & 1 deletion backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.17.0 (by /u/izdwuut)'
USER_AGENT = 'python:gog-picker:v0.17.1 (by /u/izdwuut)'
NOT_ENTERING = 'not entering'
MIN_KARMA = 300
SUBMISSIONS_LIMIT = 30
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<body>
<app-root></app-root>
<footer class="footer">
Gift of Games Picker for Reddit <a href="https://github.com/izdwuut/gog-picker">v0.17.0</a>.
Gift of Games Picker for Reddit <a href="https://github.com/izdwuut/gog-picker">v0.17.1</a>.
Scripted by <a href="https://reddit.com/u/izdwuut">u/izdwuut</a> and <a href="https://github.com/izdwuut/gog-picker/pulls">friends</a> in open source.
Licensed under <a href="https://github.com/izdwuut/gog-picker/blob/dev/LICENSE">MIT Licence</a>
</footer>
Expand Down

0 comments on commit e5d2b6f

Please sign in to comment.