Use max index instead of curr_date
This commit is contained in:
parent
9b17bafb97
commit
387b976f81
3
wsgi.py
3
wsgi.py
@ -82,11 +82,12 @@ def create_plot_df(
|
||||
data_dict[key] = df["Digitale Befragung"]
|
||||
|
||||
df = pd.DataFrame(data=data_dict).T
|
||||
max_date = df.index.max()
|
||||
|
||||
df.index = df.index.astype("datetime64[ns]") + pd.DateOffset(hours=10)
|
||||
|
||||
df = df.reindex(
|
||||
pd.date_range(start="2023-08-15", end=curr_datetime) + pd.DateOffset(hours=10)
|
||||
pd.date_range(start="2023-08-15", end=max_date) + pd.DateOffset(hours=10)
|
||||
)
|
||||
|
||||
if current_df is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user