Skip to content

Commit

Permalink
test: changed deprecated insert() to insert_one()
Browse files Browse the repository at this point in the history
  • Loading branch information
Athitheya Gobinathan authored and Athitheya Gobinathan committed May 14, 2024
1 parent a9f26f7 commit 63236b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro_tes/ga4gh/tes/task_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def _write_doc_to_db(
)
document.worker_id = uuid()
try:
self.db_client.insert(document.dict(exclude_none=True))
self.db_client.insert_one(document.dict(exclude_none=True))
except DuplicateKeyError:
continue
assert document is not None
Expand Down

0 comments on commit 63236b7

Please sign in to comment.