Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,7 @@ def fetch_openweather_forecast(lat, lon):
|
|
| 70 |
try:
|
| 71 |
response = requests.get(url)
|
| 72 |
response.raise_for_status() # Raise HTTPError for bad responses
|
| 73 |
-
|
| 74 |
|
| 75 |
# Store the forecast data in the global list
|
| 76 |
if data and 'daily' in data:
|
|
|
|
| 70 |
try:
|
| 71 |
response = requests.get(url)
|
| 72 |
response.raise_for_status() # Raise HTTPError for bad responses
|
| 73 |
+
data = response.json()
|
| 74 |
|
| 75 |
# Store the forecast data in the global list
|
| 76 |
if data and 'daily' in data:
|