simpler code

pull/200/head
Aevann 2023-09-12 23:28:10 +03:00
parent 9ce6027621
commit dfb195714a
1 changed files with 1 additions and 2 deletions

View File

@ -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: