Skip to content

Commit

Permalink
Merge pull request #256 from bcgov/develop/alex-GRAD2-2377
Browse files Browse the repository at this point in the history
GRAD2-2377
  • Loading branch information
infstar authored Apr 22, 2024
2 parents 0c2ab30 + 398aaf8 commit 7e56282
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ public ProcessorData fire(ProcessorData processorData) {
int numberOfCreatedSchoolLabelReports = 0;
List<School> schoolsForLabels = new ArrayList<>();
List<School> districtsForLabels = new ArrayList<>();
List<String> processedSchools = new ArrayList<>();
for (String mincode : mapDist.keySet()) {
DistributionPrintRequest distributionPrintRequest = mapDist.get(mincode);
CommonSchool commonSchool = getBaseSchoolDetails(distributionPrintRequest, searchRequest, mincode, exception);
if (commonSchool != null) {
int currentSlipCount = 0;
schoolCounter++;
processedSchools.add(mincode);
String schoolCategoryCode = commonSchool.getSchoolCategoryCode();

logger.debug("*** School Details Acquired {} category {}", mincode, schoolCategoryCode);
Expand Down Expand Up @@ -144,7 +146,7 @@ public ProcessorData fire(ProcessorData processorData) {
response.getSchools().addAll(schoolsForLabels);
response.getDistricts().addAll(districtsForLabels);
response.setStudentSearchRequest(searchRequest);
response.getDistrictSchools().addAll(mapDist.keySet());
response.getDistrictSchools().addAll(processedSchools);
processorData.setDistributionResponse(response);
return processorData;
}
Expand Down

0 comments on commit 7e56282

Please sign in to comment.