Skip to content

Commit

Permalink
Merge pull request #452 from bcgov/feature/GRAD2-2271
Browse files Browse the repository at this point in the history
GRAD2-2271: improved for a student with "X" courses and regular courses.
  • Loading branch information
infstar authored Nov 3, 2023
2 parents 5154d7a + fb3d1e5 commit b1e1904
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public RuleData fire() {
&& studentCourseList.get(i).getCourseLevel().equals(studentCourseList.get(j).getCourseLevel())
&& !studentCourseList.get(j).isDuplicate()) {

logger.debug("comparing {} with {} -> Duplicate FOUND - CourseID: {}-{}",studentCourseList.get(i).getCourseCode(),studentCourseList.get(j).getCourseCode(),studentCourseList.get(i).getCourseCode(),studentCourseList.get(i).getCourseLevel());
logger.debug("comparing {} with {} -> Duplicate FOUND - CourseID: {}-{} {}",studentCourseList.get(i).getCourseCode(),studentCourseList.get(j).getCourseCode(),
studentCourseList.get(j).getCourseCode(),studentCourseList.get(j).getCourseLevel(),studentCourseList.get(j).getSessionDate());

if (studentCourseList.get(i).getCredits() > studentCourseList.get(j).getCredits()) {
studentCourseList.get(i).setDuplicate(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ public RuleData fire() {
}
}
}
if (!studentCourses.isEmpty()) {
ruleProcessorData.getStudentCourses().addAll(ruleProcessorData.getExcludedCourses());
}
return ruleProcessorData;
}

Expand Down

0 comments on commit b1e1904

Please sign in to comment.