From 46007a198240211d1dc85dd2d9eb5a2f7e5a8880 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 23 May 2023 12:04:08 +0200 Subject: [PATCH] Continued: - also check if 'blocker' is meanwhile blocked (WIP) --- fetch_blocks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fetch_blocks.py b/fetch_blocks.py index 59c4415..a5aa9ea 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -18,7 +18,11 @@ for blocker, software in fba.cursor.fetchall(): if blocker == "": print("WARNING: blocker is now empty!") continue + elif fba.is_blacklisted(blocker): + print(f"WARNING: blocker='{blocker}' is blacklisted now!") + continue + # NOISY-DEBUG: print(f"DEBUG: blocker='{blocker}'") fba.update_last_blocked(blocker) if software == "pleroma": -- 2.39.5