forked from rDrama/rDrama
1
0
Fork 0

try smth to fix error

master
Aevann 2023-09-11 21:06:41 +03:00
parent 19d5cd8a37
commit b7e3f7719e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def get_mentions(cache, queries, reddit_notifs_users=False):
url = f'https://api.pullpush.io/reddit/search/{kind}?q={query}'
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:
if thing['subreddit'] in {'IAmA', 'PokemonGoRaids', 'SubSimulatorGPT2', 'SubSimGPT2Interactive'}: continue