def TODO追加(self, text, state=None, add_at=None, due=None): todo.put(text=text, state=state, add_at=add_at, due=due)
def create_save(): text = request.form['text'] todo.put(text=text, state=todo.TODO_STATES['TODO'], due=None) return redirect(url_for('index'))