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