]> git.mxchange.org Git - fba.git/blobdiff - fetch_blocks.py
Continued:
[fba.git] / fetch_blocks.py
index a9b8535305b2a2899a0f7da768569b13a31cc376..260945f35a2a58c60bda26e04a7784c1933901ee 100755 (executable)
@@ -141,6 +141,7 @@ for blocker, software, origin, nodeinfo_url in rows:
                             print(f"DEBUG: Updating block last seen for blocker='{blocker}',blocked='{blocked}' ...")
                             fba.update_last_seen(blocker, blocked, block_level)
 
+            # DEBUG: print("DEBUG: Committing changes ...")
             fba.connection.commit()
 
             # Reasons
@@ -340,6 +341,7 @@ for blocker, software, origin, nodeinfo_url in rows:
                         fba.update_last_seen(blocker, blocking, block_level)
                         fba.update_block_reason(reason, blocker, blocking, block_level)
 
+            # DEBUG: print("DEBUG: Committing changes ...")
             fba.connection.commit()
         except Exception as e:
             print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(e)}]:'{str(e)}'")
@@ -437,6 +439,7 @@ for blocker, software, origin, nodeinfo_url in rows:
                         fba.update_last_seen(blocker, blocked, block_level)
                         fba.update_block_reason(reason, blocker, blocked, block_level)
 
+            # DEBUG: print("DEBUG: Committing changes ...")
             fba.connection.commit()
         except Exception as e:
             print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(e)}]:'{str(e)}'")
@@ -512,6 +515,7 @@ for blocker, software, origin, nodeinfo_url in rows:
                                 # DEBUG: print(f"DEBUG: Setting block reason for blocked='{blocked}':'{peer['public_comment']}'")
                                 entry["reason"] = peer["public_comment"]
 
+                # DEBUG: print("DEBUG: Committing changes ...")
                 fba.connection.commit()
         except Exception as e:
             print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(e)}]:'{str(e)}'")