Spaces:
Runtime error
Runtime error
Orangefish
commited on
Commit
•
f4c1fda
1
Parent(s):
8e7dace
Update app.py
Browse files
app.py
CHANGED
@@ -16,15 +16,15 @@ import time
|
|
16 |
from datetime import timedelta, datetime
|
17 |
from branca.element import Figure
|
18 |
|
19 |
-
from functions import
|
20 |
|
21 |
def greet(name):
|
22 |
X = pd.DataFrame()
|
23 |
for i in range(8):
|
24 |
# Get, rename column and rescalef
|
25 |
-
next_day_date = datetime.today()
|
26 |
next_day = next_day_date.strftime ('%Y-%m-%d')
|
27 |
-
json =
|
28 |
X = X.append(json['days'][0], ignore_index=True)
|
29 |
|
30 |
|
|
|
16 |
from datetime import timedelta, datetime
|
17 |
from branca.element import Figure
|
18 |
|
19 |
+
from functions import get_weather_by_date
|
20 |
|
21 |
def greet(name):
|
22 |
X = pd.DataFrame()
|
23 |
for i in range(8):
|
24 |
# Get, rename column and rescalef
|
25 |
+
next_day_date = datetime.today() - timedelta(days=i)
|
26 |
next_day = next_day_date.strftime ('%Y-%m-%d')
|
27 |
+
json = get_weather_by_date(next_day)
|
28 |
X = X.append(json['days'][0], ignore_index=True)
|
29 |
|
30 |
|