diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index d4c2b991c..8dc72893f 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -32,9 +32,8 @@ def offsite_mentions_task(cache): g.db.commit() # commit early otherwise localhost testing fails to commit def get_mentions(cache, queries, reddit_notifs_users=False): - kinds = ['submission', 'comment'] mentions = [] - for kind in kinds: + for kind in ('submission', 'comment'): data = [] for query in queries: