Skip to content
Snippets Groups Projects
Commit b61cdfca authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

add convert funcs to population and pib per capita filters

parent af612d67
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!61add convert funcs to population and pib per capita filters
Pipeline #
module.exports = function citySize(id) {
switch (id) {
case 1:
return 'até 5000';
case 2:
return '5001 - 10000';
case 3:
return '10001 - 20000';
case 4:
return '20001 - 50000';
case 5:
return '50001 - 100000';
case 6:
return '100001 - 500000';
case 7:
return 'mais que 500000';
default:
return 'Não classificado';
}
};
module.exports = function citySize(id) {
switch (id) {
case 1:
return '1º quintil – 20% menores';
case 2:
return '2º quintil';
case 3:
return '3º quintil';
case 4:
return '4º quintil';
case 5:
return '5º quintil – 20% maiores';
default:
return 'Não classificado';
}
};
......@@ -12,6 +12,8 @@ const educationLevel = require(`${libs}/convert/educationLevel`);
const educationLevelMod = require(`${libs}/convert/educationLevelMod`);
const educationLevelShort = require(`${libs}/convert/educationLevelShort`);
const educationType = require(`${libs}/convert/educationType`);
const citySize = require(`${libs}/convert/citySize`);
const incomeLevel = require(`${libs}/convert/incomeLevel`);
const ids = {
gender_id: gender,
......@@ -56,7 +58,9 @@ const ids = {
library_id: booleanVariable,
reading_room_id: booleanVariable,
water_id: booleanVariable,
education_type_id: educationType
education_type_id: educationType,
income_level_id: incomeLevel,
city_size_id: citySize
};
function transform(removeId=false) {
......
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