From 723d9141e54a56e29bef8a85d42d1ce2490a8a27 Mon Sep 17 00:00:00 2001 From: liuwei Date: Sat, 8 Feb 2025 10:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=BA=93=EF=BC=8C=E4=BD=BF=E7=94=A8mariadb=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message_report/write_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message_report/write_db.py b/message_report/write_db.py index b284a32..7188b5f 100644 --- a/message_report/write_db.py +++ b/message_report/write_db.py @@ -32,7 +32,7 @@ def write_to_db(): with connection.cursor() as cursor: # 插入消息信息 sql = """ - INSERT OR REPLACE INTO speech_counts (group_id, wx_id, date, count) VALUES (%s, %s, %s, %s) + INSERT INTO speech_counts (group_id, wx_id, date, count) VALUES (%s, %s, %s, %s) """ cursor.execute(sql, (group_id, wx_id, yesterday, count))