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