Spaces:
Running
Running
creazy (#18)
Browse files- madthin (f4e9315ec5607797c06f369eec9fc92c518ab0c0)
- 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 |
-
|
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)
|