mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-14 17:04:55 +08:00
GUI: Improve tags display
This commit is contained in:
parent
712bc6396d
commit
26c084bdfe
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue