From 821018a3be8cddd2fe403c0e2b53288a73a15f4b Mon Sep 17 00:00:00 2001 From: ManuelW Date: Sat, 11 May 2024 09:59:07 +0200 Subject: [PATCH] DB config --- insertLoading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/insertLoading.py b/insertLoading.py index 3f7b6bb..84e3432 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -53,7 +53,7 @@ def updateLast(cursor): sql = ''' SELECT d_total_distance, d_total_ascent, d_avg_speed FROM bike_drives WHERE d_date >= ?; ''' - cursor.execute(sql, row[1]) + cursor.execute(sql, (row[1],)) rows = cursor.fetchall() total_range = 0