Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,6 +97,7 @@ class Weather:
|
|
97 |
return requests.get(url, headers=headers).json()
|
98 |
|
99 |
@cachetools.func.ttl_cache(maxsize=128, ttl=15*60)
|
|
|
100 |
weather = self.get_weather()
|
101 |
next_hour = None
|
102 |
for hour_data in weather['forecast']['forecastday'][0]["hour"]:
|
|
|
97 |
return requests.get(url, headers=headers).json()
|
98 |
|
99 |
@cachetools.func.ttl_cache(maxsize=128, ttl=15*60)
|
100 |
+
def get_info(self):
|
101 |
weather = self.get_weather()
|
102 |
next_hour = None
|
103 |
for hour_data in weather['forecast']['forecastday'][0]["hour"]:
|