set date to tomorrow
Browse files
app.py
CHANGED
@@ -363,7 +363,7 @@ def show_forecast():
|
|
363 |
now = datetime.datetime.now().replace(minute=0, second=0, microsecond=0)
|
364 |
|
365 |
if "forecast_date" not in st.session_state:
|
366 |
-
st.session_state.forecast_date = now.date()
|
367 |
if "forecast_time" not in st.session_state:
|
368 |
st.session_state.forecast_time = datetime.time(14,0)
|
369 |
if "forecast_length" not in st.session_state:
|
|
|
363 |
now = datetime.datetime.now().replace(minute=0, second=0, microsecond=0)
|
364 |
|
365 |
if "forecast_date" not in st.session_state:
|
366 |
+
st.session_state.forecast_date = (now + datetime.timedelta(days=1)).date()
|
367 |
if "forecast_time" not in st.session_state:
|
368 |
st.session_state.forecast_time = datetime.time(14,0)
|
369 |
if "forecast_length" not in st.session_state:
|