From 0ed35ce69f12f5789b4c81ad6769741dc83d62c5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 25 Apr 2022 21:42:35 +0200 Subject: [PATCH] vxc --- files/routes/static.py | 4 +-- files/templates/sidebar_WPD.html | 60 ++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 files/templates/sidebar_WPD.html diff --git a/files/routes/static.py b/files/routes/static.py index 458ea1dd3..38a3b137e 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -198,10 +198,10 @@ def cached_chart(kind): today_cutoff = calendar.timegm(midnight_this_morning) if kind == "daily": - file = "/daily_chart.png" + file = f"{SITE}_daily.png" day_cutoffs = [today_cutoff - 86400 * i for i in range(47)][1:] else: - file = "/weekly_chart.png" + file = f"{SITE}_weekly.png" day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(47)][1:] day_cutoffs.insert(0, calendar.timegm(now)) diff --git a/files/templates/sidebar_WPD.html b/files/templates/sidebar_WPD.html new file mode 100644 index 000000000..782c9bb15 --- /dev/null +++ b/files/templates/sidebar_WPD.html @@ -0,0 +1,60 @@ + \ No newline at end of file