From 031d9c52e093171ac9a7261adaf932e41eee10f7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 21 Apr 2022 18:10:15 +0200 Subject: [PATCH] fds --- files/routes/static.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 4b6ca623e..6b61b6c26 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -123,15 +123,8 @@ def stats(): } @app.get("/chart") -@auth_required def chart(v): - days = bool(request.values.get("days")) - file = cached_chart(days) - try: f = send_file(file) - except: - print('/chart', flush=True) - abort(404) - return f + return redirect('/weekly_chart') @app.get("/weekly_chart")