Refactor icons directory
This commit is contained in:
parent
adbd46f715
commit
4b80ff19dc
229 changed files with 11 additions and 11 deletions
|
|
@ -177,7 +177,7 @@ class WeatherAPI:
|
|||
def get_forecast(self, *args, **kwargs):
|
||||
for i in [0, 1, 2, 3]:
|
||||
enddt = datetime.now() + timedelta(days=i)
|
||||
v = self.get_weather(*args, **kwargs, dt=enddt.strftime("%Y-%m-%d"))["forecast"]["forecastday"][0]
|
||||
v = self.get_weather(*args, **kwargs, dt=enddt.strftime("%Y-%m-%d"), alerts="yes")["forecast"]["forecastday"][0]
|
||||
v["day"]["date"] = enddt
|
||||
yield v
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue