From dd56cc247a42ec27bdf198fcb4d6d819c5138918 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 25 Mar 2024 15:25:00 +0300 Subject: use data dir for files --- gn3/api/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') 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, -- cgit v1.2.3