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

Change informatics_lab to boolean convert

parent 1160e1f7
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
...@@ -23,7 +23,8 @@ const ids = { ...@@ -23,7 +23,8 @@ const ids = {
agreement_id: agreement, agreement_id: agreement,
integral_time_id: booleanVariable, integral_time_id: booleanVariable,
government_agreement_id: booleanVariable, government_agreement_id: booleanVariable,
building_school_id: booleanVariable building_school_id: booleanVariable,
informatics_lab_id: booleanVariable
}; };
function transform(removeId=false) { function transform(removeId=false) {
......
...@@ -78,6 +78,7 @@ schoolApp.get('/library_or_reading_room', (req, res, next) => { ...@@ -78,6 +78,7 @@ schoolApp.get('/library_or_reading_room', (req, res, next) => {
schoolApp.get('/informatics_lab', (req, res, next) => { schoolApp.get('/informatics_lab', (req, res, next) => {
req.result = [ req.result = [
{id: null, name: 'Não Declarado'},
{id: 0, name: 'Não'}, {id: 0, name: 'Não'},
{id: 1, name: 'Sim'} {id: 1, name: 'Sim'}
]; ];
...@@ -450,7 +451,7 @@ rqfCount.addField({ ...@@ -450,7 +451,7 @@ rqfCount.addField({
name: 'informatics_lab', name: 'informatics_lab',
table: 'escola', table: 'escola',
tableField: 'lab_informatica', tableField: 'lab_informatica',
resultField: 'informatics_lab_name', resultField: 'informatics_lab_id',
where: { where: {
relation: '=', relation: '=',
type: 'boolean', 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