def delete_assignment(assignment_pk): model.delete_assignment(assignment_pk) assignments = model.get_assignments() return render_template('assignmentlist.html', user = current_user, assignments=assignments)
def delete_assignment(assignment_pk): model.delete_assignment(assignment_pk) assignments = model.get_assignments() return render_template('assignmentlist.html', user=current_user, assignments=assignments)
def list_assignments(): assignments = model.get_assignments() return render_template('assignmentlist.html', assignments=assignments, user=current_user)