fix: 最新公告恢复关键词过滤

This commit is contained in:
2026-05-10 14:29:33 +08:00
parent 0121017272
commit 048fca283d
+1
View File
@@ -245,6 +245,7 @@ class WeChatMessageHandler:
async for db in get_db():
stmt = (
select(Announcement)
.where(Announcement.keyword_matched == True) # noqa: E712
.order_by(desc(Announcement.publish_date))
.limit(5)
)