userIdc2024 commited on
Commit
dc912b4
·
verified ·
1 Parent(s): 90ba8bd

Update database.py

Browse files
Files changed (1) hide show
  1. 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