Skip to content
Snippets Groups Projects
Commit cbd00f50 authored by lgtg20's avatar lgtg20
Browse files

fix: remove hardcoded capital code and adjust query conditions for cap_code dimension

parent 34e4b51b
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...,!454Development,!452Fix issue 953
......@@ -120,7 +120,6 @@ basicEducationConclusion.get('/cap_code', (req, res, next) => {
});
}
}
req.result.push({id: 99, name: id2str.capitalCode(99)});
next();
}, response('cap_code'));
......@@ -604,6 +603,10 @@ basicEducationConclusion.get('/', rqf.parse(), rqf.build(), (req, res, next) =>
totalPopEdBasMaior19.where("faixa_rendimento_aux_tx is not null");
}
if (req.query.dims && req.query.dims.includes("cap_code")) {
totalPopMaior19.where("cod_cap < 99");
}
req.querySet.push(totalPopEdBasMaior19);
req.querySet.push(totalPopMaior19);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment