reverse posts order

This commit is contained in:
bakatrouble 2023-06-19 16:36:03 +03:00
parent 564134fc78
commit 3197fe5d86

View File

@ -110,7 +110,7 @@ async def check_updates():
if not posts:
return
already_sent = await redis.smismember('e621:sent', [p.id for p in posts])
for i in range(len(posts)):
for i in list(range(len(posts)))[::-1]:
if already_sent[i]:
continue
await send_post(posts[i], tag_list)