From 2b19df63197a86752a71345c3eb3044786ccb0dd Mon Sep 17 00:00:00 2001 From: root Date: Sun, 16 Jan 2022 14:26:27 +0000 Subject: Redirect to home after changing temperature --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 04736c8..2d64b4b 100644 --- a/main.py +++ b/main.py @@ -51,13 +51,13 @@ def index(): @app.route("/up") def form(): boiler.up() - return main_page() + return redirect(url_for('/')) @app.route("/down") def activity(): boiler.down() - return main_page() + return redirect(url_for('/')) @app.route("/export") -- cgit v1.2.3