]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 21 May 2023 17:36:42 +0000 (19:36 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 21 May 2023 17:36:42 +0000 (19:36 +0200)
- no local variable needed

fetch_blocks.py

index 7f5d857ec1bc00a371a2d1a20c5c3977f03921e2..247d15dc7a0b8b1950e2b93dbef95ff9d7c21262 100644 (file)
@@ -403,13 +403,12 @@ for blocker, software in fba.cursor.fetchall():
                         fba.update_last_seen(blocker, blocked, "reject")
 
                     if "public_comment" in peer:
-                        reason = peer["public_comment"]
-                        # NOISY-DEBUG: print("DEBUG: Updating block reason:", blocker, blocked, reason)
-                        fba.update_block_reason(reason, blocker, blocked, "reject")
+                        # NOISY-DEBUG: print("DEBUG: Updating block reason:", blocker, blocked, peer["public_comment"])
+                        fba.update_block_reason(peer["public_comment"], blocker, blocked, "reject")
 
                         for entry in blockdict:
                             if entry["blocked"] == blocked:
-                                entry["reason"] = reason
+                                entry["reason"] = peer["public_comment"]
 
                 fba.connection.commit()
         except Exception as e: