aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-01 02:51:41 +0300
committerAlexander_Kabui2024-05-01 02:51:41 +0300
commitf5354f287eb417f40ef9011d21e0db5ae65032f9 (patch)
treeb06cdfe144e0f07d73e18ffb0fd35a1471c7f220
parentd5c93b634ed0eedc626928254dcbd57ad859a423 (diff)
downloadgenenetwork3-f5354f287eb417f40ef9011d21e0db5ae65032f9.tar.gz
Debug:fix issue use current_app to fetch config
-rw-r--r--gn3/api/llm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py
index 5a694a3..acbe623 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -63,7 +63,7 @@ def gnqa():
def rating(task_id):
try:
with (require_oauth.acquire("profile") as token,
- db.connection(LLM_DB_PATH) as conn):
+ db.connection(current_app.config.get(LLM_DB_PATH)) as conn):
results = request.json
user_id, query, answer, weight = (token.user.user_id,