Skip to content

Commit

Permalink
filter out data objects with no data_object_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 20, 2024
1 parent cbec96c commit 7660a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmdc_automation/workflow_automation/workflow_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_required_data_objects_map(db, workflows: List[WorkflowConfig]) -> Dict[s
required_types.update(set(wf.data_object_types))

required_data_objs_by_id = dict()
for rec in db.data_object_set.find():
for rec in db.data_object_set.find({"data_object_type": {"$ne": None}}):
do = DataObject(**rec)
if do.data_object_type.code.text not in required_types:
continue
Expand Down

0 comments on commit 7660a91

Please sign in to comment.