From 3f3c2efb79ccbe4713e32d7eac1a1abc11c91b97 Mon Sep 17 00:00:00 2001 From: Natan Keddem Date: Sat, 4 Nov 2023 00:00:55 -0400 Subject: [PATCH] fixed multiple identical hold tags displaying --- bale/tabs/manage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bale/tabs/manage.py b/bale/tabs/manage.py index 513e250..91327c5 100644 --- a/bale/tabs/manage.py +++ b/bale/tabs/manage.py @@ -278,7 +278,9 @@ class Manage(Tab): rows = await self._grid.get_selected_rows() for row in rows: holds = await self.zfs.holds_for_snapshot(f"{row['filesystem']}@{row['name']}") - all_tags.extend(holds.data) + for tag in holds.data: + if tag not in all_tags: + all_tags.append(tag) if len(all_tags) > 0: tags.update() self._spinner.visible = False