Skip to content

Commit

Permalink
barcode_meta default value
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidysymons committed Feb 6, 2025
1 parent f515204 commit 6a31b02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions microsetta_private_api/model/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def to_api(self):
# matches that of the association between a sample and a source
class SampleInfo:
def __init__(self, sample_id, datetime_collected, site, notes,
barcode_meta={}):
barcode_meta=None):
self.id = sample_id
# NB: datetime_collected may be None if sample not yet used
self.datetime_collected = datetime_collected
Expand All @@ -96,4 +96,7 @@ def __init__(self, sample_id, datetime_collected, site, notes,
# NB: site may be None if sample not yet used
self.site = site

self.barcode_meta = barcode_meta
if barcode_meta is None:
self.barcode_meta = {}
else:
self.barcode_meta = barcode_meta

0 comments on commit 6a31b02

Please sign in to comment.