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