不使用本地库,使用mariadb完成存储
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user