Skip to content

Commit

Permalink
Update NIPTool/build/document.py
Browse files Browse the repository at this point in the history
Co-authored-by: Måns Magnusson <mans.magnusson@scilifelab.se>
  • Loading branch information
mayabrandi and Måns Magnusson committed Sep 8, 2020
1 parent 647a37f commit 04e05fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NIPTool/build/document.py
Expand Up @@ -31,7 +31,7 @@ def build_sample(sample_data: dict) -> dict:
sample = build_document(sample_data, SAMPLE_KEYS)
if sample.get("SampleProject"):
sample["SampleProject"] = str(sample["SampleProject"])
sample["_id"] = sample_data.get("SampleID")
sample["_id"] = sample_data["SampleID"]

return sample

Expand All @@ -42,4 +42,4 @@ def build_batch(batch_data: dict) -> dict:
batch = build_document(batch_data, BATCH_KEYS)
batch["_id"] = str(batch_data.get("SampleProject"))

return batch
return batch

0 comments on commit 04e05fb

Please sign in to comment.