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
|
# # 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue