Last active
August 29, 2015 14:16
-
-
Save jonespm/a95dcb84938d8f6f0632 to your computer and use it in GitHub Desktop.
getAssignmentWithStats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List getAssignmentsWithStats(final Long gradebookId, final String sortBy, final boolean ascending) { | |
return getAssignmentsWithStats(gradebookId, sortBy, ascending, false); | |
} | |
/** | |
*/ | |
public List getAssignmentsWithStats(final Long gradebookId, final String sortBy, final boolean ascending, final boolean includeDroppedScores) { | |
Set studentUids = getAllStudentUids(getGradebookUid(gradebookId)); | |
List<AssignmentGradeRecord> gradeRecords = getAllAssignmentGradeRecords(gradebookId, studentUids); | |
if(!includeDroppedScores) { | |
applyDropScores(gradeRecords); | |
} | |
List assignments = getAssignmentsWithStats(gradebookId, sortBy, ascending, gradeRecords); | |
return assignments; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment