Skip to content
Snippets Groups Projects
Commit 9924c5ed authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[FIX] Changing 'faixa_etaria' filter to 'age_range_id'

parent d737e28f
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!414[ADD] Route almost ready, some tests needed. Comments added and filters that...
...@@ -118,10 +118,10 @@ rqf.addField({ ...@@ -118,10 +118,10 @@ rqf.addField({
field: 'cor_raca' field: 'cor_raca'
} }
}).addValue({ }).addValue({
name: 'age_range_all', name: 'age_range',
table: 'pnad_novo', table: 'pnad_novo',
tableField: 'faixa_etaria', tableField: 'faixa_etaria',
resultField: 'age_range_all_id', resultField: 'age_range_id',
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
...@@ -208,6 +208,9 @@ function matchQueries(attendsSchoolObj, populationObj) { ...@@ -208,6 +208,9 @@ function matchQueries(attendsSchoolObj, populationObj) {
newObj.total = (attendsSchoolObj[i].total / populationObj[i].total) * 100; newObj.total = (attendsSchoolObj[i].total / populationObj[i].total) * 100;
newObj.age_range_id = newObj.faixa_etaria;
delete newObj.faixa_etaria;
match.push(newObj); match.push(newObj);
} }
......
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