]> git.mxchange.org Git - fba.git/commitdiff
Continued: broken/missing-import-reqto
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2023 11:42:20 +0000 (13:42 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2023 11:42:20 +0000 (13:42 +0200)
- first 'rows' was re-assigned with new values, which is typical for Python
- yet still this hasn't fixed the recursion error

fba/commands.py

index 849e13cce5c3b8e8ef96e321fd2c4eeb1416e03e..3f5b4354eb7e161e1330e8d23370e6cf3f7b6cd4 100644 (file)
@@ -163,12 +163,12 @@ def fetch_blocks(args: argparse.Namespace):
         elif software == "friendica" or software == "misskey":
             print(f"INFO: blocker='{blocker}',software='{software}'")
             if software == "friendica":
-                rows = friendica.fetch_blocks(blocker)
+                blocks = friendica.fetch_blocks(blocker)
             elif software == "misskey":
-                rows = misskey.fetch_blocks(blocker)
+                blocks = misskey.fetch_blocks(blocker)
 
-            print(f"INFO: Checking {len(rows.items())} entries from blocker='{blocker}',software='{software}' ...")
-            for block_level, blocklist in rows.items():
+            print(f"INFO: Checking {len(blocks.items())} entries from blocker='{blocker}',software='{software}' ...")
+            for block_level, blocklist in blocks.items():
                 # DEBUG: print("DEBUG: blocker,block_level,blocklist():", blocker, block_level, len(blocklist))
                 block_level = tidyup.domain(block_level)
                 # DEBUG: print("DEBUG: AFTER-block_level:", block_level)