From 1e5dadf5ef7a6ec8ebf0882a3860bf23cc412d13 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 4 Aug 2023 19:39:05 +0200 Subject: [PATCH] bugfix --- api/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db.py b/api/db.py index f89912a4..80edb709 100644 --- a/api/db.py +++ b/api/db.py @@ -385,7 +385,7 @@ class Message: def from_db(discussions_db, message_id): columns = Message.get_fields() rows = discussions_db.select( - f"SELECT {','.join(columns)} WHERE id=?", (id,) + f"SELECT {','.join(columns)} FROM message WHERE id=?", (message_id,) ) data_dict={ col:rows[i]