Skip to content
Snippets Groups Projects
Commit ed940644 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Fix bug in classroom count

parent 35207a97
No related branches found
No related tags found
2 merge requests!162V1.8.0,!159Issue/408
Pipeline #17967 failed
...@@ -570,7 +570,7 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => { ...@@ -570,7 +570,7 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => {
// Se a série escolar é menor que a atual, ela não está no vetor, pois o vetor está ordenado e tem range limitado // Se a série escolar é menor que a atual, ela não está no vetor, pois o vetor está ordenado e tem range limitado
if(cityClass.school_year_id < currentClass.school_year_id) { if(cityClass.school_year_id < currentClass.school_year_id) {
currentEducation.classes_school_year.splice(n, 0, cityClass); currentEducation.classes_school_year.splice(n, 0, cityClass);
++o; cityClass = cityEducation.classes_school_year[++o];
continue; continue;
} else if(cityClass.school_year_id > currentClass.school_year_id) { } else if(cityClass.school_year_id > currentClass.school_year_id) {
currentClass = currentEducation.classes_school_year[++n]; currentClass = currentEducation.classes_school_year[++n];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment