Commit 1b21fa1f authored by jan-pieter's avatar jan-pieter

forgot to check for an empty name

parent b2490eac
......@@ -54,9 +54,10 @@ def statusUpdate():
def addPerson():
if request.method == "POST":
result = request.form
newPerson = Person(request.form["name"], request.form["remark"])
if newPerson not in people:
people.append(newPerson)
if result["name"]:
newPerson = Person(result["name"], result["remark"])
if newPerson not in people:
people.append(newPerson)
return redirect("/")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment