From a355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Wed, 16 Oct 2024 23:57:24 +0200 Subject: Cleaned up the layout a bit --- app.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app.py') diff --git a/app.py b/app.py index f145354..2421ee9 100644 --- a/app.py +++ b/app.py @@ -27,6 +27,11 @@ def get_time(): return render_template(t, mins=mins, secs=secs) +@app.route("/control", methods=["GET"]) +def get_controls(): + return render_template("controls.j2", courts=rg.courts.get_courts()) + + @app.route("/guests", methods=["GET"]) def get_guests(): t = re.from_string('{% from "macros.j2" import guests %}{{guests(count)}}') -- cgit v1.3.1