diff --git a/insertLoading.py b/insertLoading.py index ca9d286..9e6cca5 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -71,14 +71,14 @@ def updateLast(cursor): avg_speed = round(avg_speed / fahrten, 1) - data = (total_range, total_ascent, watt, fahrten) + data = (total_range, total_ascent, watt, fahrten, ins_id) sql = ''' UPDATE bike_loading SET l_total_range = ?, l_total_ascent = ?, l_loaded_wh = ?, l_fahrten = ? - WHERE id = ins_id + WHERE id = ? ''' cursor.execute(sql, data) db.commit()