diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-17 00:01:05 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-17 00:01:05 +0200 |
| commit | fb6b013b821e2011a04d6ba85813a6a947c14239 (patch) | |
| tree | a8079ca06cb33fc71bb8dc690ac80d458a756571 /app.py | |
| parent | a355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc (diff) | |
Removed debug statements and old template
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -40,12 +40,14 @@ def get_guests(): @app.route("/decrement", methods=["POST"]) def increment_guests(): - return render_template("guests.j2", guests=rg.players.decrement_guests()) + t = re.from_string('{% from "macros.j2" import guests %}{{guests(count)}}') + return render_template(t, count=rg.players.decrement_guests()) @app.route("/increment", methods=["POST"]) def decrement_guests(): - return render_template("guests.j2", guests=rg.players.increment_guests()) + t = re.from_string('{% from "macros.j2" import guests %}{{guests(count)}}') + return render_template(t, count=rg.players.increment_guests()) @app.route("/propose", methods=["POST"]) |
