From ac1ca4f8344de797e3e82a75f3d671a50076e607 Mon Sep 17 00:00:00 2001 From: ManuelW Date: Sat, 11 May 2024 09:57:25 +0200 Subject: [PATCH] DB config --- insertLoading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/insertLoading.py b/insertLoading.py index a2faa04..3f7b6bb 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -51,9 +51,9 @@ def updateLast(cursor): ## hole alle Fahrten nach letzter Ladung sql = ''' - SELECT d_total_distance, d_total_ascent, d_avg_speed FROM bike_drives WHERE d_date >= ?, (row[1]); + SELECT d_total_distance, d_total_ascent, d_avg_speed FROM bike_drives WHERE d_date >= ?; ''' - cursor.execute(sql) + cursor.execute(sql, row[1]) rows = cursor.fetchall() total_range = 0