]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 7 Feb 2024 07:55:13 +0000 (08:55 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 7 Feb 2024 07:55:13 +0000 (08:55 +0100)
- it was imported from previous code and seem not to work everywhere
- so let's remove the non-working part

fba/networks/pleroma.py

index 4126999e8f08ea466980b4cfa3b5bd2cb1dc6f9a..bdccdc2997414657599f216267393a9882aeaa54 100644 (file)
@@ -105,14 +105,7 @@ def fetch_blocks(domain: str) -> list:
     if "mrf_simple" in data:
         logger.debug("Found mrf_simple in API response from domain='%s'", domain)
         found = True
-        for block_level, blocklist in (
-            {
-                **data["mrf_simple"],
-                **{
-                    "quarantined_instances": data["quarantined_instances"]
-                }
-            }
-        ).items():
+        for block_level, blocklist in data["mrf_simple"].items():
             logger.debug("block_level='%s', blocklist()=%d", block_level, len(blocklist))
             block_level = tidyup.domain(block_level) if block_level != "" else None
             logger.debug("block_level='%s' - AFTER!", block_level)