From: Roland Häder Date: Sun, 21 May 2023 17:36:42 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=829c9d9e44db54e262fa82da060c192c522dbc22;p=fba.git Continued: - no local variable needed --- diff --git a/fetch_blocks.py b/fetch_blocks.py index 7f5d857..247d15d 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -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: