From c5b06b2283aa65aea7146e1af969f64300fc28e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 7 Feb 2024 08:55:13 +0100 Subject: [PATCH] Continued: - it was imported from previous code and seem not to work everywhere - so let's remove the non-working part --- fba/networks/pleroma.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/fba/networks/pleroma.py b/fba/networks/pleroma.py index 4126999..bdccdc2 100644 --- a/fba/networks/pleroma.py +++ b/fba/networks/pleroma.py @@ -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) -- 2.39.5