DB config
This commit is contained in:
parent
328906d814
commit
0fa40f403f
@ -71,14 +71,14 @@ def updateLast(cursor):
|
|||||||
|
|
||||||
avg_speed = round(avg_speed / fahrten, 1)
|
avg_speed = round(avg_speed / fahrten, 1)
|
||||||
|
|
||||||
data = (total_range, total_ascent, watt, fahrten)
|
data = (total_range, total_ascent, watt, fahrten, ins_id)
|
||||||
sql = '''
|
sql = '''
|
||||||
UPDATE bike_loading SET
|
UPDATE bike_loading SET
|
||||||
l_total_range = ?,
|
l_total_range = ?,
|
||||||
l_total_ascent = ?,
|
l_total_ascent = ?,
|
||||||
l_loaded_wh = ?,
|
l_loaded_wh = ?,
|
||||||
l_fahrten = ?
|
l_fahrten = ?
|
||||||
WHERE id = ins_id
|
WHERE id = ?
|
||||||
'''
|
'''
|
||||||
cursor.execute(sql, data)
|
cursor.execute(sql, data)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user