🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-23 04:58:15 +00:00
parent 91ba369433
commit 20fe9cca64
2 changed files with 26 additions and 24 deletions

View File

@@ -566,17 +566,15 @@ def build_readable_messages(
)
.order_by(ActionRecords.time)
)
# 获取最新消息之后的第一个动作记录
action_after_latest = (
ActionRecords.select()
.where(
(ActionRecords.time > max_time) & (ActionRecords.chat_id == chat_id)
)
.where((ActionRecords.time > max_time) & (ActionRecords.chat_id == chat_id))
.order_by(ActionRecords.time)
.limit(1)
)
# 合并两部分动作记录
actions = list(actions_in_range) + list(action_after_latest)