Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
feijooso committed Apr 3, 2024
1 parent d601fab commit e50ffb7
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions app/service/Users.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,7 @@ def _get_user_info(self, access_token):

def _validate_location(self, location):
if "lat" in location and "long" in location:
latitud = location["lat"]
longitud = location["long"]
if (-90<=location["lat"]<= 90 and -180<=location["long"]<= 180): return True
return False

if (-90<=location["lat"]<= 90 and -180<=location["long"]<= 180):
return True

return False

""" if isinstance(latitud, (int, float)) and isinstance(longitud, (int, float)):
if -90 <= latitud <= 90 and -90 <= longitud <= 90:
return True
else:
return False
else:
return False
else:
return False """

0 comments on commit e50ffb7

Please sign in to comment.