From 76eba7e06b295f46858a27444a1bb5465a06bec6 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 1 May 2024 06:43:39 +0300 Subject: Delete debug code --- gn3/api/llm.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gn3/api') diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 9163b76..643d6a8 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -84,14 +84,12 @@ def rating(task_id): ON CONFLICT(task_id) DO UPDATE SET weight=excluded.weight """, (str(user_id), query, answer, weight, task_id)) - return { - "message": "You have successfully rated this query:Thank you!!", - "status": 0, - "db_path": llm_db_path - + + return { + "message": "You have successfully rated this query:Thank you!!" }, 200 except sqlite3.Error as error: - return jsonify({"db_path": llm_db_path, "error": str(error)}), 500 + return jsonify({"error": str(error)}), 500 except Exception as error: raise error -- cgit v1.2.3