From e1ab3b849a209abb15c884d92b7aea456656637c Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 25 Mar 2024 16:41:51 +0300 Subject: match user id to type str --- 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 c5946ed..7414ff8 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -79,7 +79,7 @@ def rating(task_id): with db.connection(os.path.join(current_app.config["DATA_DIR"], "/llm.db")) as conn: cursor = conn.cursor() create_table = """CREATE TABLE IF NOT EXISTS Rating( - user_id INTEGER NOT NULL, + user_id TEXT NOT NULL, query TEXT NOT NULL, answer TEXT NOT NULL, weight INTEGER NOT NULL DEFAULT 0, -- cgit v1.2.3