Skip to content

Commit

Permalink
GRAD2-2308 - HD-21581-GRAD - P3 - GRAD Batch Processing - Select Stud…
Browse files Browse the repository at this point in the history
…ent Options moved to wrong place
  • Loading branch information
arybakov-cgi committed Sep 13, 2023
1 parent f519724 commit c3136f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ void filterStudentCredentialDistribution(List<StudentCredentialDistribution> cre
StudentCredentialDistribution scd = (StudentCredentialDistribution)scdIt.next();
String districtCode = StringUtils.substring(scd.getSchoolOfRecord(), 0, 3);
if (
(request.getDistricts() != null && !request.getDistricts().isEmpty() && !request.getDistricts().contains(districtCode))
(StringUtils.isNotBlank(scd.getSchoolOfRecord()) && request.getDistricts() != null && !request.getDistricts().isEmpty() && !request.getDistricts().contains(districtCode))
||
(request.getSchoolOfRecords() != null && !request.getSchoolOfRecords().isEmpty() && !request.getSchoolOfRecords().contains(scd.getSchoolOfRecord()))
(StringUtils.isNotBlank(scd.getSchoolOfRecord()) && request.getSchoolOfRecords() != null && !request.getSchoolOfRecords().isEmpty() && !request.getSchoolOfRecords().contains(scd.getSchoolOfRecord()))
) {
scdIt.remove();
LOGGER.debug("Student Credential {}/{} removed by the filter \"{}\"", scd.getPen(), scd.getSchoolOfRecord(), String.join(",", request.getDistricts()));
Expand Down

0 comments on commit c3136f0

Please sign in to comment.