From c30f7947314f9bd261b3d43934bb043c28594bbd Mon Sep 17 00:00:00 2001 From: Archos Date: Sat, 4 Apr 2026 12:40:15 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20manu=C3=A1ln=C3=AD=20=C3=BA=C4=8Dty=20p?= =?UTF-8?q?=C5=99eskakuj=C3=AD=20seen=5Fhandles=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mastodon_cz_accounts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mastodon_cz_accounts.py b/mastodon_cz_accounts.py index 482a786..dd07bce 100644 --- a/mastodon_cz_accounts.py +++ b/mastodon_cz_accounts.py @@ -163,9 +163,7 @@ def load_manual_accounts(seen_handles=None): continue handle_part, instance = entry.rsplit("@", 1) handle = f"{handle_part}@{instance}" - if handle.lower() in seen_handles: - log.debug(f" {handle} již v seznamu, přeskakuji") - continue + log.info(f" Zpracovávám manuální účet: {handle}, v seen_handles: {handle.lower() in seen_handles}") url = f"https://{instance}/api/v1/accounts/lookup?acct={urllib.parse.quote(handle_part)}" token = _token_for(instance) acc = api_get(url, token=token) @@ -176,6 +174,7 @@ def load_manual_accounts(seen_handles=None): acc["_handle"] = handle acc["_source_instance"] = instance acc["_manual"] = True + log.info(f" MANUAL účet přidán: {handle}, _manual={acc.get('_manual')}, statuses={acc.get('statuses_count')}") accounts.append(acc) log.debug(f" {handle}: OK ({acc.get('followers_count', 0)} followers)") time.sleep(RATE_LIMIT_DELAY)