From 2612a1f2b2582905414c404feaa539395d2e8d23 Mon Sep 17 00:00:00 2001 From: ManuelW Date: Sat, 11 May 2024 10:02:03 +0200 Subject: [PATCH] DB config --- insertLoading.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/insertLoading.py b/insertLoading.py index 84e3432..3fc99e2 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -74,8 +74,10 @@ def updateLast(cursor): data = (total_range, total_ascent, watt, fahrten) sql = ''' UPDATE bike_loading SET - (l_total_range, l_total_ascent, l_loaded_wh, l_fahrten) - VALUES (?, ?, ?, ?) + l_total_range = ? + l_total_ascent = ? + l_loaded_wh = ? + l_fahrten = ? WHERE id = ins_id ''' cursor.execute(sql, data)