do not update alias check progress on each iteration
This commit is contained in:
5
main.py
5
main.py
@@ -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)
|
||||
|
Reference in New Issue
Block a user