From: Roland Häder Date: Fri, 9 Jun 2023 00:14:39 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5bd307fb1d4925731b26a3da568842aef10175f;p=fba.git Continued: - github.com is not an instance, so let's not confuse some code somewhere --- diff --git a/fba/commands.py b/fba/commands.py index c2bb791..56bc9ff 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -290,14 +290,14 @@ def fetch_cs(args: argparse.Namespace): for row in domains[block_level]: # DEBUG: print(f"DEBUG: row='{row}'") - if not instances.is_registered(row["domain"]): - print(f"INFO: Fetching instances from domain='{row['domain']}' ...") - fba.fetch_instances(row["domain"], None, None, inspect.currentframe().f_code.co_name) - if not blocks.is_instance_blocked('chaos.social', row["domain"], block_level): # DEBUG: print(f"DEBUG: domain='{row['domain']}',block_level='{block_level}' blocked by chaos.social, adding ...") blocks.add_instance('chaos.social', row["domain"], row["reason"], block_level) + if not instances.is_registered(row["domain"]): + print(f"INFO: Fetching instances from domain='{row['domain']}' ...") + fba.fetch_instances(row["domain"], 'chaos.social', None, inspect.currentframe().f_code.co_name) + # DEBUG: print("DEBUG: Committing changes ...") fba.connection.commit() @@ -456,6 +456,6 @@ def fetch_federater(args: argparse.Namespace): continue print(f"INFO: Fetching instances for instane='{row['#domain']}' ...") - fba.fetch_instances(row["#domain"], 'github.com', None, inspect.currentframe().f_code.co_name) + fba.fetch_instances(row["#domain"], None, None, inspect.currentframe().f_code.co_name) # DEBUG: print("DEBUG: EXIT!")