DB config

This commit is contained in:
Manuel Weiser 2024-05-11 09:55:17 +02:00
parent 09873af15a
commit ddadb3c2aa

View File

@ -51,7 +51,7 @@ 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 >= row[1];
'''
cursor.execute(sql)
rows = cursor.fetchall()