reverse posts order
This commit is contained in:
parent
564134fc78
commit
3197fe5d86
2
main.py
2
main.py
@ -110,7 +110,7 @@ async def check_updates():
|
|||||||
if not posts:
|
if not posts:
|
||||||
return
|
return
|
||||||
already_sent = await redis.smismember('e621:sent', [p.id for p in posts])
|
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]:
|
if already_sent[i]:
|
||||||
continue
|
continue
|
||||||
await send_post(posts[i], tag_list)
|
await send_post(posts[i], tag_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user