Skip to content
Snippets Groups Projects
Commit 1160e1f7 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Change building_scholl to boolean convert

parent 212975f8
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
......@@ -22,7 +22,8 @@ const ids = {
ethnic_group_id: ethnicGroup,
agreement_id: agreement,
integral_time_id: booleanVariable,
government_agreement_id: booleanVariable
government_agreement_id: booleanVariable,
building_school_id: booleanVariable
};
function transform(removeId=false) {
......
......@@ -61,6 +61,7 @@ schoolApp.get('/agreement', (req, res, next) => {
schoolApp.get('/building_school', (req, res, next) => {
req.result = [
{id: null, name: 'Não Declarado'},
{id: 0, name: 'Não'},
{id: 1, name: 'Sim'}
];
......@@ -679,7 +680,7 @@ rqfCount.addField({
name: 'building_school',
table: 'escola',
tableField: 'local_func_predio_escolar',
resultField: 'building_school_name',
resultField: 'building_school_id',
where: {
relation: '=',
type: 'boolean',
......
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