add logging

This commit is contained in:
bakatrouble 2023-03-30 23:00:05 +03:00
parent 078c9270b7
commit 658dec83cd

View File

@ -30,6 +30,7 @@ async def check_updates():
tag_list.sort() tag_list.sort()
for tl_idx in range(0, len(tag_list), 40): for tl_idx in range(0, len(tag_list), 40):
tags = ' '.join(f'~{tag}' for tag in tag_list[tl_idx: tl_idx + 40]) tags = ' '.join(f'~{tag}' for tag in tag_list[tl_idx: tl_idx + 40])
logging.warning(tags)
posts = await e621.get_posts(tags) posts = await e621.get_posts(tags)
if not posts: if not posts:
return return