Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
Fixed issues to fix lint issues
  • Loading branch information
vaibhav-2703 authored Jul 27, 2024
1 parent 2cfbb64 commit 9238b88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

def get_coordinates(args):
"""
Takes a location(city or address) and returns the coordinates: [lat, long]
Takes a location (city or address) and returns the coordinates: [lat, long]
If no location is specified or the location is invalid, default_location()
finds the user's coordinates
finds the user's coordinates.
"""
for arg in args:
arg_str = str(arg)
Expand All @@ -29,7 +29,9 @@ def get_coordinates(args):
if location is not None:
return [location.latitude, location.longitude, location]
else:
print(f"Invalid location '{address}' provided. Using default location.")
print(
f"Invalid location '{address}' provided. Using default location."
)
return default_location()
return default_location()

Expand Down

0 comments on commit 9238b88

Please sign in to comment.