Swap total_ascent from str to float
This commit is contained in:
parent
6c211e6396
commit
5721d64991
@ -164,7 +164,7 @@ class User(BaseModel):
|
|||||||
],
|
],
|
||||||
'total_distance': float(total[0]),
|
'total_distance': float(total[0]),
|
||||||
'total_duration': str(total[1]),
|
'total_duration': str(total[1]),
|
||||||
'total_ascent': str(total[2]),
|
'total_ascent': float(total[2]),
|
||||||
'username': self.username,
|
'username': self.username,
|
||||||
}
|
}
|
||||||
if role == UserRole.AUTH_USER:
|
if role == UserRole.AUTH_USER:
|
||||||
|
Loading…
Reference in New Issue
Block a user