summaryrefslogtreecommitdiff
path: root/wk9/lect/froshims/app.py
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 10:05:59 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 10:05:59 +0000
commit6d4c11f6c99d7f311ea51840c680acbb67ae71d0 (patch)
treec2a48ec0712206ee46b215d268e2f30095898287 /wk9/lect/froshims/app.py
parent9be3fed65ad925fd2ccac6cc2853eb9958ab204c (diff)
Tue, Jul 9, 2024, 3:05 AM -07:00
Diffstat (limited to 'wk9/lect/froshims/app.py')
-rw-r--r--wk9/lect/froshims/app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wk9/lect/froshims/app.py b/wk9/lect/froshims/app.py
index a60a291..caf1e5f 100644
--- a/wk9/lect/froshims/app.py
+++ b/wk9/lect/froshims/app.py
@@ -13,4 +13,7 @@ def index():
def register():
if not request.form.get("name") or request.form.get("sport") not in SPORTS:
return render_template("failure.html")
+ for sport in request.form.getall("sport"):
+ if sport not in SPORTS:
+ return render_template("failure.html")
return render_template("success.html")