This commit is contained in:
Ville Rantanen
2018-12-13 21:14:13 +02:00
parent d481e1d498
commit f928449666
2 changed files with 7 additions and 2 deletions

View File

@@ -161,7 +161,8 @@ def parse_form(key):
'draft': False,
'vote_style': "closed",
'show_results': False,
'questions': []
'questions': [],
'title': ""
}
key = secure_filename(key)
try:
@@ -173,6 +174,10 @@ def parse_form(key):
rowsl = row.lower().rstrip()
if row.startswith("#"):
continue
if rowsl.startswith("title: "):
form['title'] = row[6:].strip()
g.title = row[6:].strip()
continue
if rowsl.startswith("expires: "):
form['expires'] = parse_row_date(row)
continue