Skip to content

Commit

Permalink
fixed the python error
Browse files Browse the repository at this point in the history
  • Loading branch information
Niharika0104 committed Nov 26, 2024
1 parent faf031c commit 9d4aee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/api/user/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ def post(self):

try:
conversations_collection.update_one(

Check warning on line 200 in application/api/user/routes.py

View check run for this annotation

Codecov / codecov/patch

application/api/user/routes.py#L200

Added line #L200 was not covered by tests
{"_id": ObjectId(data["conversation_id"]), f"queries.{data["question_index"]}": {"$exists": True}},
{"_id": ObjectId(data["conversation_id"]), f"queries.{data['question_index']}": {"$exists": True}},
{
"$set": {
f"queries.{data["question_index"]}.feedback": data["feedback"]
f"queries.{data['question_index']}.feedback": data["feedback"]
}
}
)
Expand Down

0 comments on commit 9d4aee5

Please sign in to comment.