From c7a024e6ef438c5b1d284284705edaec80befa15 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 21 Oct 2023 23:37:54 +0800 Subject: [PATCH] typo --- bot_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, )