GUI: Improve tags display

This commit is contained in:
Orsiris de Jong 2024-02-05 22:55:29 +01:00
parent 712bc6396d
commit 26c084bdfe

View file

@ -551,7 +551,10 @@ def _main_gui(viewer_mode: bool):
snapshot_hostname = snapshot["hostname"]
snapshot_id = snapshot["short_id"]
try:
snapshot_tags = " [TAGS: {}]".format(snapshot["tags"])
tags = snapshot["tags"]
if isinstance(tags, list):
tags = ",".join(tags)
snapshot_tags = tags
except KeyError:
snapshot_tags = ""
snapshot_list.append(