Added Max.ru check; --no-progressbar flag fixed (#2386)

This commit is contained in:
Soxoj
2026-03-25 11:48:12 +01:00
committed by Soxoj
parent f860ce788a
commit 0c6388aff5
4 changed files with 66 additions and 1 deletions
+2 -1
View File
@@ -1019,6 +1019,7 @@ async def self_check(
i2p_proxy=None,
auto_disable=False,
diagnose=False,
no_progressbar=False,
) -> dict:
"""
Run self-check on sites.
@@ -1053,7 +1054,7 @@ async def self_check(
tasks.append((site.name, future))
if tasks:
with alive_bar(len(tasks), title='Self-checking', force_tty=True) as progress:
with alive_bar(len(tasks), title='Self-checking', force_tty=True, disable=no_progressbar) as progress:
for site_name, f in tasks:
result = await f
result['site_name'] = site_name