API - lint fix
This commit is contained in:
parent
660190d368
commit
6b044a31ed
@ -44,7 +44,7 @@ def init_database(app: Flask) -> None:
|
|||||||
sport = Sport(label='Trail')
|
sport = Sport(label='Trail')
|
||||||
sport.img = '/img/sports/trail.png'
|
sport.img = '/img/sports/trail.png'
|
||||||
sport.is_default = True
|
sport.is_default = True
|
||||||
db.session.add(sport)
|
db.session.add(sport)
|
||||||
sport = Sport(label='Walking')
|
sport = Sport(label='Walking')
|
||||||
sport.img = '/img/sports/walking.png'
|
sport.img = '/img/sports/walking.png'
|
||||||
sport.is_default = True
|
sport.is_default = True
|
||||||
@ -56,7 +56,7 @@ def init_database(app: Flask) -> None:
|
|||||||
sport = Sport(label='Skiing (Cross Country)')
|
sport = Sport(label='Skiing (Cross Country)')
|
||||||
sport.img = '/img/sports/cross-country-skiing.png'
|
sport.img = '/img/sports/cross-country-skiing.png'
|
||||||
sport.is_default = True
|
sport.is_default = True
|
||||||
db.session.add(sport)
|
db.session.add(sport)
|
||||||
sport = Sport(label='Rowing')
|
sport = Sport(label='Rowing')
|
||||||
sport.img = '/img/sports/rowing.png'
|
sport.img = '/img/sports/rowing.png'
|
||||||
sport.is_default = True
|
sport.is_default = True
|
||||||
|
@ -129,7 +129,7 @@ def get_workouts(
|
|||||||
] += float(workout.distance)
|
] += float(workout.distance)
|
||||||
workouts_list_by_time[time_period][sport_id][
|
workouts_list_by_time[time_period][sport_id][
|
||||||
'total_duration'
|
'total_duration'
|
||||||
] += convert_timedelta_to_integer(workout.moving)
|
] += convert_timedelta_to_integer(workout.moving)
|
||||||
if workout.ascent:
|
if workout.ascent:
|
||||||
workouts_list_by_time[time_period][sport_id][
|
workouts_list_by_time[time_period][sport_id][
|
||||||
'total_ascent'
|
'total_ascent'
|
||||||
|
Loading…
Reference in New Issue
Block a user