diff --git a/app/wechat/handler.py b/app/wechat/handler.py index a436388..599bc7e 100644 --- a/app/wechat/handler.py +++ b/app/wechat/handler.py @@ -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) )