From 0fa40f403f76c82009c33f67abca4df3a92ac6ce Mon Sep 17 00:00:00 2001 From: ManuelW Date: Sat, 11 May 2024 10:06:20 +0200 Subject: [PATCH] DB config --- insertLoading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/insertLoading.py b/insertLoading.py index ca9d286..9e6cca5 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -71,14 +71,14 @@ def updateLast(cursor): avg_speed = round(avg_speed / fahrten, 1) - data = (total_range, total_ascent, watt, fahrten) + data = (total_range, total_ascent, watt, fahrten, ins_id) sql = ''' UPDATE bike_loading SET l_total_range = ?, l_total_ascent = ?, l_loaded_wh = ?, l_fahrten = ? - WHERE id = ins_id + WHERE id = ? ''' cursor.execute(sql, data) db.commit()