Skip to content

Commit

Permalink
fix incorrect update query syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 22, 2024
1 parent 3b7cf08 commit ff45e20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nmdc_automation/import_automation/activity_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ def map_sequencing_data(self) -> Tuple[nmdc.Database, Dict]:
db.data_object_set.append(DataObject(**do_record))
has_output.append(data_object_id)
update = {
"collection": "data_generation_set",
"filter": {"id": self.nucelotide_sequencing_id},
"update": {"$addToSet": {"has_output": has_output}}
"update": "data_generation_set",
"updates": [
{"q": {"id": self.nucelotide_sequencing_id}, "u": {"$addToSet": {"has_output": has_output}}}
]
}
# update self.data_object_map
if len(has_output) > 1:
Expand Down

0 comments on commit ff45e20

Please sign in to comment.