]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 1 Oct 2024 19:47:25 +0000 (21:47 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 1 Oct 2024 19:47:25 +0000 (21:47 +0200)
- removed redundant code (copy-paste)
- added missing local variable declaration

fba/commands.py

index 5efea1b8482ac533a9038b466587479e26f5ebd5..7bb6ef0f4613ec2e52ce3c3500d175c6e1e136c5 100644 (file)
@@ -1634,6 +1634,7 @@ def fetch_instances_social(args: argparse.Namespace) -> int:
     locking.acquire()
 
     source_domain = "instances.social"
+    domains = dict()
 
     if config.get("instances_social_api_key") == "":
         logger.error("API key not set. Please set in your config.json file.")
@@ -1655,14 +1656,6 @@ def fetch_instances_social(args: argparse.Namespace) -> int:
         "instances"
     )
 
-    logger.info("Fetching list from source_domain='%s' ...", source_domain)
-    rows = network.fetch_json_rows(
-        domain,
-        path,
-        headers,
-        "instances"
-    )
-
     logger.info("Checking %d row(s) ...", len(rows))
     for row in rows:
         logger.debug("row[]='%s'", type(row))