forked from rDrama/rDrama
try smth to fix error
parent
19d5cd8a37
commit
b7e3f7719e
|
@ -41,7 +41,7 @@ def get_mentions(cache, queries, reddit_notifs_users=False):
|
||||||
url = f'https://api.pullpush.io/reddit/search/{kind}?q={query}'
|
url = f'https://api.pullpush.io/reddit/search/{kind}?q={query}'
|
||||||
data += requests.get(url, headers=HEADERS, timeout=5, proxies=proxies).json()['data']
|
data += requests.get(url, headers=HEADERS, timeout=5, proxies=proxies).json()['data']
|
||||||
|
|
||||||
data = sorted(data, key=lambda x: x['created_utc'], reverse=True)
|
data = sorted(data, key=lambda x: int(x['created_utc']), reverse=True)
|
||||||
|
|
||||||
for thing in data:
|
for thing in data:
|
||||||
if thing['subreddit'] in {'IAmA', 'PokemonGoRaids', 'SubSimulatorGPT2', 'SubSimGPT2Interactive'}: continue
|
if thing['subreddit'] in {'IAmA', 'PokemonGoRaids', 'SubSimulatorGPT2', 'SubSimGPT2Interactive'}: continue
|
||||||
|
|
Loading…
Reference in New Issue