From dfb195714a3cacb8d609ee8f664907d9a19f39c1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 12 Sep 2023 23:28:10 +0300 Subject: [PATCH] simpler code --- files/helpers/offsitementions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: