jonathang commited on
Commit
6f0af06
1 Parent(s): 16d7056

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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"]: