From a102325f0eafac2587dabf7c85e0082b7bb147cf Mon Sep 17 00:00:00 2001 From: Nate Bowman Date: Wed, 28 Oct 2026 20:06:45 -0400 Subject: [PATCH] Include form after answers --- server.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 4dad8e9..8641560 100644 --- a/server.py +++ b/server.py @@ -34,15 +34,16 @@ fight = Fighting(data, nums) @app.route("/", methods=["GET", "POST"]) def serve_things(): + questions = render_template('main.html', units=sorted(fight.list_units())) + if request.method == "POST": options = defaultdict(int) options.update(request.form) return show_fight((request.form['attacker'], request.form['defender']), - options) - + options) + '

' + questions if request.method == "GET": - return render_template('main.html', units=sorted(fight.list_units())) + return questions def show_fight(names, options):