summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-17 00:01:05 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-17 00:01:05 +0200
commitfb6b013b821e2011a04d6ba85813a6a947c14239 (patch)
treea8079ca06cb33fc71bb8dc690ac80d458a756571 /app.py
parenta355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc (diff)
Removed debug statements and old template
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/app.py b/app.py
index 2421ee9..d7d3b65 100644
--- a/app.py
+++ b/app.py
@@ -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"])