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 | |
| parent | a355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc (diff) | |
Removed debug statements and old template
| -rw-r--r-- | app.py | 6 | ||||
| -rw-r--r-- | model.py | 2 | ||||
| -rw-r--r-- | templates/courts.j2 | 8 |
3 files changed, 4 insertions, 12 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"]) @@ -131,6 +131,4 @@ class Timer: return self.default mins = f"{int(total_seconds // 60):02d}" secs = f"{int(total_seconds % 60):02d}" - print(mins) - print(secs) return mins, secs diff --git a/templates/courts.j2 b/templates/courts.j2 deleted file mode 100644 index d650298..0000000 --- a/templates/courts.j2 +++ /dev/null @@ -1,8 +0,0 @@ -{% from "macros.j2" import court %} -<div class="fixed-grid has-12-cols"> -<div class="grid"> -{% for key, value in courts.items() %} - {{ court(key, value) }} -{% endfor %} -</div> -</div>
\ No newline at end of file |
