aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2024-03-25 16:41:51 +0300
committerAlexander_Kabui2024-03-25 16:41:51 +0300
commite1ab3b849a209abb15c884d92b7aea456656637c (patch)
tree0c7c60b4e69f62298213a50807b08ec2e41f701c /gn3/api
parent6796e81483b30fac99410170a3abd1e8120fae6b (diff)
downloadgenenetwork3-e1ab3b849a209abb15c884d92b7aea456656637c.tar.gz
match user id to type str
Diffstat (limited to 'gn3/api')
-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 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,