From ad079b401097ac86d6f8580fe64447afa5f44d4c Mon Sep 17 00:00:00 2001 From: Sujay Patil Date: Fri, 20 Dec 2024 10:27:23 -0800 Subject: [PATCH] filter GOLD projects based on projectStatus --- nmdc_runtime/site/translation/gold_translator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nmdc_runtime/site/translation/gold_translator.py b/nmdc_runtime/site/translation/gold_translator.py index 73572bb9..4a10d76a 100644 --- a/nmdc_runtime/site/translation/gold_translator.py +++ b/nmdc_runtime/site/translation/gold_translator.py @@ -37,6 +37,8 @@ def __init__( for biosample in biosamples if any( project.get("sequencingStrategy") in SEQUENCING_STRATEGIES + and project.get("projectStatus") + in ("Permanent Draft", "Complete and Published") for project in biosample.get("projects", []) ) ]