DB config

This commit is contained in:
Manuel Weiser 2024-05-11 10:06:20 +02:00
parent 328906d814
commit 0fa40f403f

View File

@ -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()