Fix progressbar bug

Signed-off-by: Markus Birth <markus@birth-online.de>
This commit is contained in:
2026-05-15 18:07:25 +01:00
parent b55ca08fe1
commit abab62c65a
+2 -2
View File
@@ -165,8 +165,8 @@ def main():
print(f"[bold red]{len(to_block)}[/bold red] users are not on your list yet. ([bold green]{len(blocked_by)-len(to_block)}[/bold green] are.)")
# Lists I'm on that people subscribed to
task_csky_users = prog.add_task(f"Loading subscribed blocklists you're on")
subscribed_blocklists_im_on = cs.get_subscribed_blocklists(lambda cur, tot: prog.update(task_csky_users, completed=cur, total=tot))
task_csky_lists = prog.add_task(f"Loading subscribed blocklists you're on")
subscribed_blocklists_im_on = cs.get_subscribed_blocklists(lambda cur, tot: prog.update(task_csky_lists, completed=cur, total=tot))
print(f"ClearSky returned [bold yellow]{len(subscribed_blocklists_im_on)}[/bold yellow] blocklists you're on and others subscribed to.")
prev_len = len(to_block)
for item in subscribed_blocklists_im_on: