Fix bug with no-delete option
This commit is contained in:
parent
4ddac75d9a
commit
ba9c29a3ab
@ -109,7 +109,8 @@ class Instance:
|
||||
@staticmethod
|
||||
def apply_blocks_from_diff(diffs, server, token, no_delete: bool):
|
||||
for diff in diffs:
|
||||
if diff["local"] is None and not no_delete:
|
||||
if diff["local"] is None:
|
||||
if not no_delete:
|
||||
"""Delete the block on the remote server"""
|
||||
diff['remote'].delete(server, token)
|
||||
logging.info(f"Deleted {diff['remote'].domain} from blocklist")
|
||||
|
Loading…
Reference in New Issue
Block a user