meh
This commit is contained in:
parent
c372b210d8
commit
bda8bf5ebb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue