From c22c316ba7c4bc82dc5adafd5ebc393ea655d035 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 Sep 2026 07:40:33 +0800 Subject: [PATCH] =?utf8?q?V1:=20=E5=9B=9E=E9=80=80=20study=5Flogs=20?= =?utf8?q?=E5=86=99=E5=85=A5=20new=5Fgroup=5Fid=EF=BC=88=E5=8F=96=E6=B6=88?= =?utf8?q?=20V1=E2=86=92split=20=E8=87=AA=E5=8A=A8=E5=90=8C=E6=AD=A5?= =?utf8?q?=EF=BC=8C=E6=81=A2=E5=A4=8D=E6=89=8B=E5=8A=A8=E5=90=8C=E6=AD=A5?= =?utf8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- backend/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index ba6d61e..fd91b1f 100644 --- a/backend/main.py +++ b/backend/main.py @@ -441,8 +441,8 @@ async def update_progress(data: ProgressUpdate): conn.close() return {"status": "skipped", "date": now, "reason": "duplicate same-day record"} cursor.execute( - "INSERT INTO study_logs (group_id, new_group_id, op_type, status, created_at, log_date, duration_sec) VALUES (?, ?, ?, ?, ?, ?, ?)", - (data.group_id, str(data.group_id), data.op_type, 'completed', now, today_prefix, data.duration_sec or 0) + "INSERT INTO study_logs (group_id, op_type, status, created_at, log_date, duration_sec) VALUES (?, ?, ?, ?, ?, ?)", + (data.group_id, data.op_type, 'completed', now, today_prefix, data.duration_sec or 0) ) conn.commit() conn.close() -- 2.43.0