do not update alias check progress on each iteration

This commit is contained in:
bakatrouble 2025-07-14 17:39:16 +03:00
parent fab1798f7e
commit 2b6e9bd2df

View File

@ -315,7 +315,10 @@ async def check_aliases(msg: Message):
if replacements := await e621.get_tag_aliases(subtag):
lines.append(f'- {subtag} -> {replacements[0]}, (<code>{sub}</code>)')
progress += 1
await send_progress()
if progress % 20 == 0:
await send_progress()
await send_progress()
@dp.message(filters.Command('update'), ChatFilter)