@post('/edit/<id:int>')
def update(id):
    obsah = request.forms.obsah
    cursor = db.cursor()
    cursor.execute("UPDATE poznamky SET obsah='{0}' "
                   "WHERE id='{1}'".format(obsah, id))
    db.commit()
    cursor.close()
    redirect('/poznamka/{}'.format(id))
