不使用本地库,使用mariadb完成存储

This commit is contained in:
liuwei
2025-02-08 10:25:02 +08:00
parent 723d9141e5
commit ba93e68976

View File

@@ -55,7 +55,7 @@ def generate_and_send_ranking(groupId, allContacts: dict):
query = """
SELECT wx_id, count AS speech_count
FROM speech_counts
WHERE DATE(date) = DATE('now', '-1 day')
WHERE DDATE_FORMAT(DATE_SUB('2025-01-01', INTERVAL 1 DAY), '%Y-%m-%d')
AND group_id = %s
GROUP BY wx_id
ORDER BY count DESC