summaryrefslogtreecommitdiff
path: root/wk9/lect
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:51:40 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:51:40 +0000
commit52f3ef360087fb26575cf1ba0a65ab56d2d84ca2 (patch)
treedd091e4f18ea911cacb78b86dc06d8fb78216df5 /wk9/lect
parent1d7aa03ad1e770bcfa37ea40a572bab272d56ffc (diff)
Tue, Jul 9, 2024, 2:51 AM -07:00
Diffstat (limited to 'wk9/lect')
-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")