diff --git a/src/libs/routes_v1/populationOutOfSchool.js b/src/libs/routes_v1/populationOutOfSchool.js index cac33a68d15ed7a02a9311d7a4d0a834536e408a..99d991a521e5bb21f4750bd7cdce82c53ebd6e9d 100644 --- a/src/libs/routes_v1/populationOutOfSchool.js +++ b/src/libs/routes_v1/populationOutOfSchool.js @@ -445,29 +445,12 @@ function matchQueries(queryPartial, queryTotal) { if(objMatch) { newObj.denominator = result.total; newObj.pop_total = objMatch.total; - newObj.total = Math.round((objMatch.total / result.total) * 100) + newObj.total = Math.round((objMatch.total / result.total) * 10000) / 100; match.push(newObj); } } ) - - /* console.log("tamanho: " + match.length); - console.log(match[10]) - for (let i = 7; i < match.length; i++) { - console.log("i: " , i) - match[6].denominator += match[i].denominator; - match[6].pop_total += match[i].pop_total; - } - - - console.log("chega aqui") - match[6].total = Math.round((match[6].pop_total / match[6].denominator) * 100) - console.log("match 6: " , match[6].total) - - - match.splice(7, 4) */ - console.log(match) return match;