From ddbb5e350593a170a6e20fb4a8807e1a43af7d26 Mon Sep 17 00:00:00 2001 From: Felix Blanke Date: Sun, 27 Aug 2023 19:06:34 +0200 Subject: [PATCH] Add important remark --- wsgi.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wsgi.py b/wsgi.py index 792cb4b..15ef472 100644 --- a/wsgi.py +++ b/wsgi.py @@ -54,6 +54,12 @@ def plot( alpha: float | None = None, ) -> str: data_dict = {} + + ## Important: If multiple results are stored for the same date + ## the last is used. So this relies on the Landesbezirk data + ## to be stored with a filename that is lexigraphically larger + ## than the single district results. + for f in sorted(Path(data_folder).iterdir()): with f.open("rb") as ff: df = pd.read_excel(ff, sheet_name=sheet_name)