From 3197fe5d86a57bce69f26f01d4f9c2ef9b6f2068 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 19 Jun 2023 16:36:03 +0300 Subject: [PATCH] reverse posts order --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a5d68fb..8dfdee5 100644 --- a/main.py +++ b/main.py @@ -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)