Skip to content

Commit

Permalink
SAK-40272 - Grades multiplied by 100 in grades file (sakaiproject#5761)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmticarum authored and juanjmerono committed Jul 10, 2018
1 parent e46fbf3 commit b5bbfc2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2875,7 +2875,7 @@ private void zipSubmissions(String assignmentReference, String assignmentTitle,
params[1] = submitters[i].getEid();
params[2] = submitters[i].getLastName();
params[3] = submitters[i].getFirstName();
params[4] = s.getGrade(); // TODO may need to look at this
params[4] = getGradeDisplay(s.getGrade(), s.getAssignment().getTypeOfGrade(), s.getAssignment().getScaleFactor());
if (s.getDateSubmitted() != null) {
params[5] = s.getDateSubmitted().toString(); // TODO may need to be formatted
} else {
Expand All @@ -2887,7 +2887,7 @@ private void zipSubmissions(String assignmentReference, String assignmentTitle,
params[1] = fullAnonId;
params[2] = anonTitle;
params[3] = anonTitle;
params[4] = s.getGrade();
params[4] = getGradeDisplay(s.getGrade(), s.getAssignment().getTypeOfGrade(), s.getAssignment().getScaleFactor());
if (s.getDateSubmitted() != null) {
params[5] = s.getDateSubmitted().toString(); // TODO may need to be formatted
} else {
Expand Down Expand Up @@ -3158,9 +3158,11 @@ protected void zipGroupSubmissions(String assignmentReference, String assignment
}
String latenessStatus = whenSubmissionMade(s);

final String gradeDisplay = getGradeDisplay(s.getGrade(), s.getAssignment().getTypeOfGrade(), s.getAssignment().getScaleFactor());

//Adding the row
sheet.addRow(submitterString, submittersString, submitters2String, // TODO gs.getGroup().getTitle(), gs.getGroup().getId(), submitters2String,
s.getGrade(), s.getDateSubmitted().toString(), latenessStatus);
gradeDisplay, s.getDateSubmitted() != null ? s.getDateSubmitted().toString(): StringUtils.EMPTY, latenessStatus);

if (StringUtils.trimToNull(submitterString) != null) {
submittersName = submittersName.concat(StringUtils.trimToNull(submitterString));
Expand Down

0 comments on commit b5bbfc2

Please sign in to comment.