This commit is contained in:
Shawn Grigson 2023-09-10 19:38:09 -05:00
parent c372b210d8
commit bda8bf5ebb
1 changed files with 4 additions and 4 deletions

View File

@ -581,6 +581,10 @@ def push_blocklist(token: str, host: str, blocklist: list[DomainBlock],
# # Convert serverblocks to a dictionary keyed by domain name
# knownblocks = {row.domain: row for row in serverblocks}
log.debug(f"Checking server blocks: {serverblocks}")
for block in serverblocks:
log.debug(f"Checking block: {block}")
for newblock in blocklist.values():
log.debug(f"Processing block: {newblock}")
@ -643,10 +647,6 @@ def push_blocklist(token: str, host: str, blocklist: list[DomainBlock],
else:
log.info("Dry run selected. Not adding block.")
log.debug(f"Checking server blocks: {serverblocks}")
for block in serverblocks:
log.debug(f"Checking block: {block}")
def load_config(configfile: str):
"""Augment commandline arguments with config file parameters