Add newlines for better overview
This commit is contained in:
parent
0a20bb3e8d
commit
7c54a1286a
@ -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
|
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):
|
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):
|
def parse_remote_block(self, instance_dict):
|
||||||
self.domain = instance_dict["domain"]
|
self.domain = instance_dict["domain"]
|
||||||
@ -131,8 +131,8 @@ class Instance:
|
|||||||
table = Table(title="Differences", expand=True, show_lines=True)
|
table = Table(title="Differences", expand=True, show_lines=True)
|
||||||
|
|
||||||
table.add_column("Domain", style="cyan")
|
table.add_column("Domain", style="cyan")
|
||||||
table.add_column("Current remote status", style="magenta")
|
|
||||||
table.add_column("Local status", style="green")
|
table.add_column("Local status", style="green")
|
||||||
|
table.add_column("Current remote status", style="magenta")
|
||||||
diffs = Instance.list_diffs(local_blocklist, remote_blocklist)
|
diffs = Instance.list_diffs(local_blocklist, remote_blocklist)
|
||||||
for diff in diffs:
|
for diff in diffs:
|
||||||
if diff["local"] is None:
|
if diff["local"] is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user