diff --git a/main.py b/main.py index 8ed2b8b..81b2c5f 100644 --- a/main.py +++ b/main.py @@ -311,11 +311,13 @@ async def check_aliases(msg: Message): await resp.edit_text(f'Checking aliases {progress}/{len(tags)}\n\n{l}', parse_mode=ParseMode.HTML) for sub in tags: + replaced_tags = False for subtag in sub.split(): if replacements := await e621.get_tag_aliases(subtag): lines.append(f'- {subtag} -> {replacements[0]}, ({sub})') + replaced_tags = False progress += 1 - if progress % 20 == 0: + if replaced_tags: await send_progress() await send_progress()