kolkhi commited on
Commit
8a4086f
·
verified ·
1 Parent(s): 9c45ae4

Fix the coordinate fetching

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def sunrise_sunset_tool(city:str)-> str: #it's import to specify the return type
23
  city: A string representing location name
24
  """
25
  try:
26
- lat, lng = get_city_coordinates()
27
  api_url = "https://api.sunrise-sunset.org/json"
28
  payload = {'lat': lat, 'lng': lng}
29
  ret = requests.get(api_url, params=payload)
 
23
  city: A string representing location name
24
  """
25
  try:
26
+ lat, lng = get_city_coordinates(city)
27
  api_url = "https://api.sunrise-sunset.org/json"
28
  payload = {'lat': lat, 'lng': lng}
29
  ret = requests.get(api_url, params=payload)