Skip to content

Commit 45f38e0

Browse files
authored
Merge pull request #565 from xchem/fix_second_upload_tags
Fixed tag creation process for multiple uploads
2 parents 34d7c48 + 173b303 commit 45f38e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

viewer/target_loader.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,9 @@ def _tag_observations(self, tag, prefix, category, so_list):
18751875
so_group.save()
18761876

18771877
try:
1878-
so_tag = SiteObservationTag.objects.get(upload_name=tag, target=self.target)
1878+
so_tag = SiteObservationTag.objects.get(
1879+
upload_name=f"{prefix} - {tag}", target=self.target
1880+
)
18791881
# Tag already exists
18801882
# Apart from the new mol_group and molecules, we shouldn't be
18811883
# changing anything.

0 commit comments

Comments
 (0)