Improved db migrations, & fixes

This commit is contained in:
Collin Rapp
2021-02-15 21:25:58 -08:00
parent 6ccee0569c
commit 284fff7e36
4 changed files with 227 additions and 195 deletions

View File

@@ -54,7 +54,7 @@ def run():
subreddit = reddit.subreddit(cfg.subreddit)
logging.info('Watching subreddit %s', subreddit.title)
is_mod = subreddit.moderator(redditor=reddit.user.me())
logging.info(f'Is {"" if is_mod else "NOT "} moderator for subreddit')
logging.info(f'Is {"" if is_mod else "NOT "}moderator for subreddit')
monitor_comments(reddit, subreddit, db, levels, cfg)
@@ -306,7 +306,7 @@ def is_valid_tag(solved_comment, valid_tags):
# def find_solver(solved_comment):
def find_solver_and_comment(solved_comment)
def find_solver_and_comment(solved_comment):
"""Determine the redditor responsible for solving the question."""
# TODO plz make this better someday
# return solved_comment.parent().author