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

Change science_lab to boolean convert

parent e76413f3
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
......@@ -24,7 +24,8 @@ const ids = {
integral_time_id: booleanVariable,
government_agreement_id: booleanVariable,
building_school_id: booleanVariable,
informatics_lab_id: booleanVariable
informatics_lab_id: booleanVariable,
science_lab_id: booleanVariable
};
function transform(removeId=false) {
......
......@@ -88,6 +88,7 @@ schoolApp.get('/informatics_lab', (req, res, next) => {
schoolApp.get('/science_lab', (req, res, next) => {
req.result = [
{id: null, name: 'Não Declarado'},
{id: 0, name: 'Não'},
{id: 1, name: 'Sim'}
];
......@@ -461,7 +462,7 @@ rqfCount.addField({
name: 'science_lab',
table: 'escola',
tableField: 'lab_ciencias',
resultField: 'informatics_lab_name',
resultField: 'science_lab_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