summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:47:58 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:47:58 +0000
commit1d7aa03ad1e770bcfa37ea40a572bab272d56ffc (patch)
treeab310faecc0f75ea890e7294880334ab97ac0d95
parentbd8dbe3a8efde49e85da8ec5c9cc2d7d7d283268 (diff)
Tue, Jul 9, 2024, 2:47 AM -07:00
-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"