Skip to content

Commit

Permalink
Merge pull request #676 from xchem/m2ms-1535-pose-data-loss
Browse files Browse the repository at this point in the history
Fixed (probably) data loss on metadata.csv uploads (issue 1535)
  • Loading branch information
kaliif authored Oct 7, 2024
2 parents ff351ee + 3e3c770 commit e2fdf59
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion viewer/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,13 @@ def load_tags_from_file(filename: str, target: Target) -> list[str]: # type: ig
target=target,
)

qs = SiteObservation.objects.filter(longcode__in=df['Long code'])
# fmt: off
qs = SiteObservation.filter_manager.by_target(
target=target,
).filter(
longcode__in=df['Long code'],
)
# fmt: on

alias_update = []
for upload_name, alias in tag_aliases:
Expand Down

0 comments on commit e2fdf59

Please sign in to comment.