DB config
This commit is contained in:
parent
821018a3be
commit
2612a1f2b2
@ -74,8 +74,10 @@ def updateLast(cursor):
|
|||||||
data = (total_range, total_ascent, watt, fahrten)
|
data = (total_range, total_ascent, watt, fahrten)
|
||||||
sql = '''
|
sql = '''
|
||||||
UPDATE bike_loading SET
|
UPDATE bike_loading SET
|
||||||
(l_total_range, l_total_ascent, l_loaded_wh, l_fahrten)
|
l_total_range = ?
|
||||||
VALUES (?, ?, ?, ?)
|
l_total_ascent = ?
|
||||||
|
l_loaded_wh = ?
|
||||||
|
l_fahrten = ?
|
||||||
WHERE id = ins_id
|
WHERE id = ins_id
|
||||||
'''
|
'''
|
||||||
cursor.execute(sql, data)
|
cursor.execute(sql, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user