forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2023-10-08 21:49:05 +03:00
parent 9d700dc6e1
commit 3ff07e44b0
1 changed files with 3 additions and 2 deletions

View File

@ -89,8 +89,9 @@ def submit_get(v, hole=None):
HOLES = [x[0] for x in g.db.query(Hole.name).order_by(Hole.name)]
if SITE_NAME == "WPD":
HOLES = HOLES - ["other"] + ["other"]
if "other" in HOLES:
HOLES.remove("other")
HOLES.append("other")
return render_template("submit.html", HOLES=HOLES, v=v, hole=hole)