From 9e4c3ab4e5eb9d170e00f8981b27addf55c30336 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 8 Apr 2025 16:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/message_recall/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/message_recall/main.py b/plugins/message_recall/main.py index e94f50d..a94a465 100644 --- a/plugins/message_recall/main.py +++ b/plugins/message_recall/main.py @@ -111,8 +111,7 @@ class MessageRecallPlugin(MessagePluginInterface): try: # 从数据库里面提取可以处理的消息and StrTalker ={roomid} and IsSender=1 - sql = (f"SELECT * FROM MSG where CreateTime > (strftime('%s', 'now') - 120) " - f"limit {parts[1]}") + sql = (f"SELECT * FROM MSG where CreateTime > (strftime('%s', 'now') - 120)") data = wcf.query_sql('MSG0.db', sql) self.LOG.info(f"SQL:{sql}\n 查询到可撤回数据: {data}") if not data: