API - lint fix

This commit is contained in:
Sam 2021-09-01 11:19:11 +02:00
parent 660190d368
commit 6b044a31ed
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ def init_database(app: Flask) -> None:
sport = Sport(label='Trail')
sport.img = '/img/sports/trail.png'
sport.is_default = True
db.session.add(sport)
db.session.add(sport)
sport = Sport(label='Walking')
sport.img = '/img/sports/walking.png'
sport.is_default = True
@ -56,7 +56,7 @@ def init_database(app: Flask) -> None:
sport = Sport(label='Skiing (Cross Country)')
sport.img = '/img/sports/cross-country-skiing.png'
sport.is_default = True
db.session.add(sport)
db.session.add(sport)
sport = Sport(label='Rowing')
sport.img = '/img/sports/rowing.png'
sport.is_default = True

View File

@ -129,7 +129,7 @@ def get_workouts(
] += float(workout.distance)
workouts_list_by_time[time_period][sport_id][
'total_duration'
] += convert_timedelta_to_integer(workout.moving)
] += convert_timedelta_to_integer(workout.moving)
if workout.ascent:
workouts_list_by_time[time_period][sport_id][
'total_ascent'