       return true
 
   $scope.articleNoPoints = (assignment)->
-    # if (assignment.id == 1)
-    #   debugger
     if assignment.pass_fail && assignment.grade.pass_fail_status != "Pass"
       return true
     else if assignment.grade.score == null || assignment.grade.score == 0

    )
    return scoreLevels[closest]

  $scope.hasAssignments = (assignmentType)->
    $scope.assignmentsForAssignmentType($scope.assignments,assignmentType.id).length > 0


    )
    total

  # multiply points by the student's assignment type weight
  # passes points through for unweighted assignment types
  $scope.weightedPoints = (points,assignmentType)->
    if assignmentType.student_weightable
      if assignmentType.student_weight > 0
