From 173b303e9990a27a2d0716fae033c6c0843c625b Mon Sep 17 00:00:00 2001 From: Kalev Takkis Date: Wed, 20 Mar 2024 10:10:45 +0000 Subject: [PATCH] fix: fixed tag creation process for upload 2 --- viewer/target_loader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/viewer/target_loader.py b/viewer/target_loader.py index 2590f163..4e72cc8a 100644 --- a/viewer/target_loader.py +++ b/viewer/target_loader.py @@ -1875,7 +1875,9 @@ def _tag_observations(self, tag, prefix, category, so_list): so_group.save() try: - so_tag = SiteObservationTag.objects.get(upload_name=tag, target=self.target) + so_tag = SiteObservationTag.objects.get( + upload_name=f"{prefix} - {tag}", target=self.target + ) # Tag already exists # Apart from the new mol_group and molecules, we shouldn't be # changing anything.