예제 #1
0
def delete(sno, project):
    todo = Tasks.query.filter_by(sno=sno).first()
    Tasks.remove_task(todo)
    return redirect(url_for('tasks', project=project))
예제 #2
0
def remove(sno):
    todo_list = Dashboard.query.filter_by(sno=sno).first()
    Tasks.remove_task(todo_list=todo_list)
    return redirect(url_for('dashboard'))