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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wk9/lect/froshims/app.py b/wk9/lect/froshims/app.py
index f083e51..1b34ba2 100644
--- a/wk9/lect/froshims/app.py
+++ b/wk9/lect/froshims/app.py
@@ -9,5 +9,6 @@ def index():
@app.route("/register", methods=["POST"])
def register():
- if not request.form.get("name"):
+ if not request.form.get("name") or not request.for.get("sport"):
return "failure"
+ return "success"