Skip to content

Commit

Permalink
Merge pull request #565 from xchem/fix_second_upload_tags
Browse files Browse the repository at this point in the history
Fixed tag creation process for multiple uploads
  • Loading branch information
kaliif authored Mar 20, 2024
2 parents 34d7c48 + 173b303 commit 45f38e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion viewer/target_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 45f38e0

Please sign in to comment.