diff options
author | Alexander_Kabui | 2024-03-25 16:41:51 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-03-25 16:41:51 +0300 |
commit | e1ab3b849a209abb15c884d92b7aea456656637c (patch) | |
tree | 0c7c60b4e69f62298213a50807b08ec2e41f701c /gn3 | |
parent | 6796e81483b30fac99410170a3abd1e8120fae6b (diff) | |
download | genenetwork3-e1ab3b849a209abb15c884d92b7aea456656637c.tar.gz |
match user id to type str
Diffstat (limited to 'gn3')
-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 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, |