Skip to content

Commit

Permalink
Merge pull request #108 from ChristianToro/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf authored Aug 13, 2024
2 parents 285a962 + cff217e commit 257b5f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def get_coordinates(args):
geolocator = Nominatim(user_agent="cli-surf")
location = geolocator.geocode(address)
if location is not None:
return [location.latitude, location.longitude, location]
return [
location.latitude,
location.longitude,
location.raw["name"],
]
else:
print(
f"Invalid location '{address}' provided. "
Expand Down

2 comments on commit 257b5f3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   __init__.py00100% 
   api.py119794%36–40, 58, 80–81, 113–114
   art.py9367%32–33, 36
   cli.py250100% 
   dev_streamlit.py37370%1–86
   gpt.py10640%16–21, 32–45
   helper.py1243869%110, 121–125, 201–209, 221, 234–235, 266, 268–269, 292–293, 356–366, 373–381
   send_email.py24240%5–48
   server.py471079%55, 68–71, 87–91, 103–105
   settings.py220100% 
   streamlit_helper.py33330%5–90
TOTAL45015865% 

Tests Skipped Failures Errors Time
11 0 💤 0 ❌ 0 🔥 24.219s ⏱️

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   __init__.py00100% 
   api.py119794%36–40, 58, 80–81, 113–114
   art.py9367%32–33, 36
   cli.py250100% 
   dev_streamlit.py37370%1–86
   gpt.py10640%16–21, 32–45
   helper.py1243869%110, 121–125, 201–209, 221, 234–235, 266, 268–269, 292–293, 356–366, 373–381
   send_email.py24240%5–48
   server.py471079%55, 68–71, 87–91, 103–105
   settings.py220100% 
   streamlit_helper.py33330%5–90
TOTAL45015865% 

Tests Skipped Failures Errors Time
11 0 💤 0 ❌ 0 🔥 25.064s ⏱️

Please sign in to comment.