Fix logging strings

This commit is contained in:
moanos [he/him] 2023-01-11 21:27:20 +01:00
parent 288527a76a
commit 0a20bb3e8d

View File

@ -118,11 +118,11 @@ class Instance:
elif diff["remote"] is None: elif diff["remote"] is None:
"""Add the block on the remote server""" """Add the block on the remote server"""
diff["local"].apply(server, token) diff["local"].apply(server, token)
logging.info(f"Added {diff['remote'].domain} to blocklist") logging.info(f"Added {diff['local'].domain} to blocklist")
else: else:
"""Update the block on the remote server""" """Update the block on the remote server"""
diff["local"].apply(server, token, block_id=diff["remote"].id) diff["local"].apply(server, token, block_id=diff["remote"].id)
logging.info(f"Updated {diff['remote'].domain} in blocklist") logging.info(f"Updated {diff['local'].domain} in blocklist")
@staticmethod @staticmethod
def show_diffs(local_blocklist, remote_blocklist): def show_diffs(local_blocklist, remote_blocklist):