about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-03-25 15:25:00 +0300
committerAlexander_Kabui2024-03-25 15:25:00 +0300
commitdd56cc247a42ec27bdf198fcb4d6d819c5138918 (patch)
tree73beb420e3aac9ce99fb051cf80281c09a482172
parent7b64fe40308f3a5883be6eb9d3f195ac9b682d9f (diff)
downloadgenenetwork3-dd56cc247a42ec27bdf198fcb4d6d819c5138918.tar.gz
use data dir for files
-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 aff01cb..d22a42c 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -73,7 +73,7 @@ def rating(task_id):
                                               results.get("query"),
                                               results.get("answer"),
                                               results.get("weight", 0))
-            with db.connection(current_app.config["GNQA_DB"]) as conn:
+            with db.connection(current_app.config["DATA_DIR"]) as conn:
                 cursor = conn.cursor()
                 create_table = """CREATE TABLE IF NOT EXISTS Rating(
                       user_id INTEGER NOT NULL,