summaryrefslogtreecommitdiff
path: root/wk9/lect/froshims/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'wk9/lect/froshims/app.py')
-rw-r--r--wk9/lect/froshims/app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wk9/lect/froshims/app.py b/wk9/lect/froshims/app.py
index 1b34ba2..db24ea6 100644
--- a/wk9/lect/froshims/app.py
+++ b/wk9/lect/froshims/app.py
@@ -9,6 +9,6 @@ def index():
@app.route("/register", methods=["POST"])
def register():
- if not request.form.get("name") or not request.for.get("sport"):
- return "failure"
- return "success"
+ if not request.form.get("name") or not request.form.get("sport"):
+ return render_template("failure.html")
+ return render_template("success")