diff options
author | Alexander_Kabui | 2024-05-01 02:51:41 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-05-01 02:51:41 +0300 |
commit | f5354f287eb417f40ef9011d21e0db5ae65032f9 (patch) | |
tree | b06cdfe144e0f07d73e18ffb0fd35a1471c7f220 /gn3/api | |
parent | d5c93b634ed0eedc626928254dcbd57ad859a423 (diff) | |
download | genenetwork3-f5354f287eb417f40ef9011d21e0db5ae65032f9.tar.gz |
Debug:fix issue use current_app to fetch config
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/llm.py | 2 |
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, |