aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-01 06:43:39 +0300
committerAlexander_Kabui2024-05-01 06:43:39 +0300
commit76eba7e06b295f46858a27444a1bb5465a06bec6 (patch)
tree5803aa6467bbf8914078d650030407ce62ae2e9f /gn3
parent5ec3198db99aef74974023a094bd3df757ac8801 (diff)
downloadgenenetwork3-76eba7e06b295f46858a27444a1bb5465a06bec6.tar.gz
Delete debug code
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/llm.py10
1 files changed, 4 insertions, 6 deletions
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