Fixed lint issues
This commit is contained in:
parent
5721d64991
commit
0cb4a26cf2
@ -138,7 +138,9 @@ class User(BaseModel):
|
|||||||
)
|
)
|
||||||
total = (
|
total = (
|
||||||
db.session.query(
|
db.session.query(
|
||||||
func.sum(Workout.distance), func.sum(Workout.duration), func.sum(Workout.ascent)
|
func.sum(Workout.distance),
|
||||||
|
func.sum(Workout.duration),
|
||||||
|
func.sum(Workout.ascent),
|
||||||
)
|
)
|
||||||
.filter(Workout.user_id == self.id)
|
.filter(Workout.user_id == self.id)
|
||||||
.first()
|
.first()
|
||||||
|
Loading…
Reference in New Issue
Block a user