diff --git a/bot_db.py b/bot_db.py index b76eb48..8709756 100644 --- a/bot_db.py +++ b/bot_db.py @@ -244,7 +244,7 @@ async def message_file(room: MatrixRoom, event: RoomMessageFile): md5 = hashlib.md5(resp.body).hexdigest() document_fetch_result = await client.db.fetch_one( - query="select content from documents where md5 = :md5 lilmit 1;", + query="select content from documents where md5 = :md5 limit 1;", values={"md5": md5}, )