Skip to content
Snippets Groups Projects
Commit 730cd914 authored by es23's avatar es23 :coffee:
Browse files

fix filtro faixa etaria

parent e8dce3bb
No related branches found
No related tags found
4 merge requests!501[hotfix] capital filter working for superior education conclusion tax...,!499[hotfix] capital filter working for superior education conclusion tax...,!476dev -> homologa,!475FIX - superior education conclusion tax
......@@ -242,7 +242,7 @@ superiorEducationConclusionTaxApp.get('/state', (req, res, next) => {
superiorEducationConclusionTaxApp.get('/age_range_all', (req, res, next) => {
req.result = []
for (let i = 1; i < 12; i++) {
for (let i = 7; i < 12; i++) {
req.result.push({
id: i, name: id2str.ageRangeAll(i)
});
......@@ -585,6 +585,9 @@ function whereCondition(req) {
if (dims && dims.includes("income_range")){
where += `pnad_novo.faixa_rendimento_aux_tx is not null`;
}
if (dims && dims.includes("age_range_superior")){
where += `pnad_novo.faixa_etaria > 6`;
}
return where;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment