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()
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!")