fixed linting issues

This commit is contained in:
Niharika Goulikar
2024-11-26 12:28:16 +00:00
parent e9a2b8f03a
commit faf031ce80
2 changed files with 12 additions and 25 deletions

View File

@@ -196,10 +196,6 @@ class SubmitFeedback(Resource):
if missing_fields:
return missing_fields
if "api_key" in data:
new_doc["api_key"] = data["api_key"]
try:
conversations_collection.update_one(
{"_id": ObjectId(data["conversation_id"]), f"queries.{data["question_index"]}": {"$exists": True}},