@post('/')
@post('/seznam')
def pridej():
    titulek = request.forms.titulek
    cursor = db.cursor()
    cursor.execute('INSERT INTO poznamky (titulek, obsah) '
                   "VALUES ('{}','NOVE')".format(titulek))
    db.commit()
    cursor.close()
    redirect('/')
