Swap total_ascent from str to float

This commit is contained in:
Fmstrat 2022-07-18 15:02:18 -04:00
parent 6c211e6396
commit 5721d64991

View File

@ -164,7 +164,7 @@ class User(BaseModel):
],
'total_distance': float(total[0]),
'total_duration': str(total[1]),
'total_ascent': str(total[2]),
'total_ascent': float(total[2]),
'username': self.username,
}
if role == UserRole.AUTH_USER: