Replaced find_one_and* with proper methods

This commit is contained in:
2024-03-11 21:37:01 +01:00
parent f8ec8f6335
commit bd43ee15ae
2 changed files with 2 additions and 6 deletions

View File

@@ -226,9 +226,7 @@ class PyroClient(PyroClient):
)
raise SubmissionDuplicatesError(str(filepath), duplicates)
await col_submitted.find_one_and_update(
{"_id": ObjectId(id)}, {"$set": {"done": True}}
)
await col_submitted.update_one({"_id": ObjectId(id)}, {"$set": {"done": True}})
try:
if db_entry["temp"]["uuid"] is not None: