forked from rDrama/rDrama
simpler code
parent
9ce6027621
commit
dfb195714a
|
@ -32,9 +32,8 @@ def offsite_mentions_task(cache):
|
||||||
g.db.commit() # commit early otherwise localhost testing fails to commit
|
g.db.commit() # commit early otherwise localhost testing fails to commit
|
||||||
|
|
||||||
def get_mentions(cache, queries, reddit_notifs_users=False):
|
def get_mentions(cache, queries, reddit_notifs_users=False):
|
||||||
kinds = ['submission', 'comment']
|
|
||||||
mentions = []
|
mentions = []
|
||||||
for kind in kinds:
|
for kind in ('submission', 'comment'):
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
for query in queries:
|
for query in queries:
|
||||||
|
|
Loading…
Reference in New Issue