Skip to content
This repository was archived by the owner on May 31, 2023. It is now read-only.

Commit cdd0ab3

Browse files
committed
Bug in searching by barcode
1 parent 16dbe5e commit cdd0ab3

File tree

1 file changed

+2
-2
lines changed
  • src/sample-db-py/sample_db

1 file changed

+2
-2
lines changed

src/sample-db-py/sample_db/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,14 @@ def convert_barcoded_entries(self, barcoded_entries, date_format="%d/%m/%Y"):
626626
barcode = entry.pop('barcode')
627627
try:
628628
matrix_tube = self._get_matrix_tube(session, barcode)
629-
entry['Study Subject'] = matrix_tube.specimen.study_subject.uid
629+
entry['Study Subject UID'] = matrix_tube.specimen.study_subject.uid
630630
entry['Specimen Type'] = matrix_tube.specimen.specimen_type.label
631631
entry['Study Short Code'] = matrix_tube.specimen.study_subject.study.short_code
632632
entry['Comments'] = matrix_tube.comments
633633
if matrix_tube.specimen.collection_date:
634634
entry['Date'] = datetime.date.strftime(matrix_tube.specimen.collection_date, date_format)
635635
except NoResultFound:
636-
entry['Study Subject'] = "Barcode ({}) Not Found".format(barcode)
636+
entry['Study Subject UID'] = "Barcode ({}) Not Found".format(barcode)
637637
entry['Specimen Type'] = ""
638638
entry['Study Short Code'] = ""
639639
entry['Comments'] = ""

0 commit comments

Comments
 (0)