]> git.mxchange.org Git - fba.git/commitdiff
.
authorMint <>
Tue, 23 Aug 2022 21:25:31 +0000 (00:25 +0300)
committerMint <>
Tue, 23 Aug 2022 21:25:31 +0000 (00:25 +0300)
fetch_blocks.py

index d2f7580e2c5a41f9c92ff510d7b9aeaab5e5b12f..76ca64768f253cefa98334cc7277422bc25e47eb 100644 (file)
@@ -208,7 +208,7 @@ for blocker, software in c.fetchall():
         print(blocker)
         try:
             json = get_friendica_blocks(blocker)
-            for blocks in json.items():
+            for block_level, blocks in json.items():
                 for instance in blocks:
                     blocked, reason = instance.values()
                     blocked == blocked.lower()
@@ -232,7 +232,7 @@ for blocker, software in c.fetchall():
                                 blocker,
                                 blocked,
                                 reason,
-                                "reject",
+                                block_level,
                             ),
                         )
             conn.commit()