Skip to content

Commit

Permalink
Update tracking_sheet_srv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
williamputraintan committed Sep 13, 2024
1 parent 3488466 commit da17d5c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def persist_lab_metadata(df: pd.DataFrame, sheet_year: str):
# Only doing this for library records and (dangling) specimen/subject may be removed on a separate process

# For the library_id we need craft the library_id prefix to match the year
# E.g. year 2024, library_id prefix is 'L24' as what the Lab tracking sheet convention
library_prefix = f'L{sheet_year[-2:]}'
for lib in Library.objects.filter(library_id__startswith=library_prefix).exclude(
library_id__in=df['library_id'].tolist()).iterator():
Expand Down

0 comments on commit da17d5c

Please sign in to comment.