Add newlines for better overview

This commit is contained in:
Julian-Samuel Gebühr 2023-01-12 07:42:23 +01:00
parent 0a20bb3e8d
commit 7c54a1286a

View file

@ -25,7 +25,7 @@ class Instance:
return self.domain == other.domain and self.severity == other.severity and self.reject_media == other.reject_media and self.reject_reports == other.reject_reports and self.obfuscate == other.obfuscate
def status_str(self):
return f"{self.severity}, Reject reports: {self.reject_reports}, Reject media: {self.reject_media}, Obfuscate: {self.obfuscate}"
return f"{self.severity}\nReject reports: {self.reject_reports}\nReject media: {self.reject_media}\nObfuscate: {self.obfuscate}"
def parse_remote_block(self, instance_dict):
self.domain = instance_dict["domain"]
@ -131,8 +131,8 @@ class Instance:
table = Table(title="Differences", expand=True, show_lines=True)
table.add_column("Domain", style="cyan")
table.add_column("Current remote status", style="magenta")
table.add_column("Local status", style="green")
table.add_column("Current remote status", style="magenta")
diffs = Instance.list_diffs(local_blocklist, remote_blocklist)
for diff in diffs:
if diff["local"] is None: