From af5991cf779d52580a093d7f64404fbfec2d6fc8 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 30 Mar 2023 22:18:03 +0300 Subject: [PATCH] sort tags --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index b7b6a1e..380ca24 100644 --- a/main.py +++ b/main.py @@ -26,6 +26,7 @@ dp = Dispatcher(bot) async def check_updates(): async with redis.lock('e621:update'): tag_list = [t.decode() for t in await redis.smembers('e621:subs')] + tag_list.sort() for tl_idx in range(0, len(tag_list), 40): tags = ' '.join(f'~{tag}' for tag in tag_list[tl_idx: tl_idx + 40]) posts = await e621.get_posts(tags)