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)