converted decimals to float for serialization

pull/198/head
Chris Veilleux 2019-11-06 14:33:28 -06:00
parent 394a9fadb3
commit d34bdd9692
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,14 @@ class GeolocationEndpoint(PublicEndpoint):
self.request_geolocation
)
if selected_geolocation is not None:
selected_geolocation.latitude = float(
selected_geolocation.latitude
)
selected_geolocation.longitude = float(
selected_geolocation.longitude
)
return selected_geolocation
def _get_cities(self):