diff --git a/wsgi.py b/wsgi.py index f06c6e3..60d4958 100644 --- a/wsgi.py +++ b/wsgi.py @@ -83,6 +83,9 @@ def plot( sum_val = current_df[["Digitale Befragung"]].sum().iloc[0] df.loc[curr_datetime] = sum_val + if pd.isna(df.loc[df.index.max()][0]): + df = df.drop([df.index.max()]) + fig = plt.figure(dpi=300) # fill weekends