This commit is contained in:
Saifeddine ALOUI 2023-08-04 19:39:05 +02:00
parent a053683fc1
commit 1e5dadf5ef

View File

@ -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]