SevioCreatives commited on
Commit
13d0430
·
verified ·
1 Parent(s): a6bf763

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def get_weather(location: str)-> str:
37
  lon = place['lon']
38
  lat = place['lat']
39
 
40
- url = f'https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude=currently,minutely,hourly,alert&appid={6969cb0fa02ea908feee8820d3a22689}'
41
  try:
42
  weather_status = requests.get(url)
43
  return weather_status['daily'][0]['summary']
 
37
  lon = place['lon']
38
  lat = place['lat']
39
 
40
+ url = f'https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude=currently,minutely,hourly,alert&appid={'6969cb0fa02ea908feee8820d3a22689'}'
41
  try:
42
  weather_status = requests.get(url)
43
  return weather_status['daily'][0]['summary']