调整SQL

This commit is contained in:
liuwei
2025-04-08 16:28:40 +08:00
parent 190ddc6d39
commit 9e4c3ab4e5

View File

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