From: Roland Häder Date: Tue, 23 May 2023 10:04:08 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46007a198240211d1dc85dd2d9eb5a2f7e5a8880;p=fba.git Continued: - also check if 'blocker' is meanwhile blocked (WIP) --- 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":