From b2dfdc22ff46dd21988a2f290389e013ae043d8b Mon Sep 17 00:00:00 2001 From: ripper Date: Wed, 4 Dec 2024 14:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E5=8A=A0=E5=85=A5=E6=88=BF=E9=97=B4ID?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=EF=BC=8C=E4=BC=98=E5=8C=96=E8=AF=9D=E9=A2=98?= =?UTF-8?q?=E7=83=AD=E5=BA=A6=E8=8E=B7=E5=8F=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/topic_heat_dao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dao/topic_heat_dao.py b/dao/topic_heat_dao.py index 0d6325b..8e14c15 100644 --- a/dao/topic_heat_dao.py +++ b/dao/topic_heat_dao.py @@ -103,7 +103,7 @@ def get_heat_notify_list(room_wxid: str) -> List[TopicNotifyResult]: th.heat, th.created_at FROM topic_heats th - INNER JOIN topic_keywords tk ON th.keyword = tk.keyword + INNER JOIN topic_keywords tk ON th.keyword = tk.keyword AND th.room_wxid = tk.room_wxid WHERE tk.status = 1 AND th.heat > 0 AND th.room_wxid = :room_wxid @@ -124,5 +124,5 @@ def get_heat_notify_list(room_wxid: str) -> List[TopicNotifyResult]: if __name__ == '__main__': model = TopicHeatDao() - for item in model.get_heat_diffs('52964830236@chatroom', '无声秘恋'): + for item in model.get_heat_notify_list('52964830236@chatroom'): print(item)