- g.db.execute('insert into votes (title, description, date_end, is_transparent, is_public, is_multiplechoice) values (?, ?, ?, ?, ?, ?)',
- [request.form['title'], request.form['description'], ndate, transparent, public, multiplechoice])
+ g.db.execute('insert into votes (title, description, date_begin, date_end, is_transparent, is_public, is_multiplechoice) values (?, ?, ?, ?, ?, ?, ?)',
+ [request.form['title'], request.form['description'], date_begin, date_end, transparent, public, multiplechoice])