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