Spaces:
Sleeping
Sleeping
Update database.py
Browse files- database.py +1 -1
database.py
CHANGED
|
@@ -110,4 +110,4 @@ def get_result_by_id(collection, doc_id):
|
|
| 110 |
def delete_result_by_id(collection, doc_id):
|
| 111 |
"""Delete a specific result by _id from any collection"""
|
| 112 |
result = collection.delete_one({"_id": ObjectId(doc_id)})
|
| 113 |
-
return result.deleted_count > 0
|
|
|
|
| 110 |
def delete_result_by_id(collection, doc_id):
|
| 111 |
"""Delete a specific result by _id from any collection"""
|
| 112 |
result = collection.delete_one({"_id": ObjectId(doc_id)})
|
| 113 |
+
return result.deleted_count > 0
|