]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 23 May 2023 10:04:08 +0000 (12:04 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 23 May 2023 10:04:08 +0000 (12:04 +0200)
- also check if 'blocker' is meanwhile blocked (WIP)

fetch_blocks.py

index 59c44157f7b95f57a9562e8fde9ce124e8d7e804..a5aa9ea76e014e462c36dacd9875803e9d436049 100644 (file)
@@ -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":