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