DB config

This commit is contained in:
Manuel Weiser 2024-05-11 09:59:07 +02:00
parent ac1ca4f834
commit 821018a3be

View File

@ -53,7 +53,7 @@ def updateLast(cursor):
sql = '''
SELECT d_total_distance, d_total_ascent, d_avg_speed FROM bike_drives WHERE d_date >= ?;
'''
cursor.execute(sql, row[1])
cursor.execute(sql, (row[1],))
rows = cursor.fetchall()
total_range = 0