I forgot to .value

This commit is contained in:
Morten Delenk 2016-06-12 18:56:11 +02:00
parent 155d905898
commit d77274047c

View file

@ -21,7 +21,7 @@ try:
username=form["username"].value
message=form["message"].value
timestamp=int(time.time())
data={"name":cgi.escape(form["title"]),"markdown":cgi.escape(message),"author":cgi.escape(username),"date":timestamp}
data={"name":cgi.escape(form["title"].value),"markdown":cgi.escape(message),"author":cgi.escape(username),"date":timestamp}
storage.append("comments-%i"%aid,data)
except KeyError:
pass