Nattyboi commited on
Commit
2e5d97f
·
verified ·
1 Parent(s): 98d2c56
Files changed (1) hide show
  1. Ars/repositories.py +1 -4
Ars/repositories.py CHANGED
@@ -7,10 +7,7 @@ from Ars.objects import UserResilienceScoreCreate, UserResilienceScoreOut,BreakD
7
  import pymongo
8
 
9
  async def create_new_hashed_doc_entry(data: dict):
10
- # Ensure the 'hashed_doc' field is present in the input data
11
- if "hashed_doc" not in data:
12
- return {"error": "Missing 'hashed_doc' field in the data"}
13
-
14
  try:
15
  # Attempt to insert the document, ensuring hashed_doc is unique due to the index
16
  result = await db.resume_resilience_analysis.insert_one(data)
 
7
  import pymongo
8
 
9
  async def create_new_hashed_doc_entry(data: dict):
10
+
 
 
 
11
  try:
12
  # Attempt to insert the document, ensuring hashed_doc is unique due to the index
13
  result = await db.resume_resilience_analysis.insert_one(data)