Commit bc807a5f authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

add ead to nightTime

parent 110ab438
......@@ -26,6 +26,7 @@ module.exports = function nightTime(id) {
return 'Não';
case 1:
return 'Sim';
case 9:
default:
return 'Curso a distância';
}
......
......@@ -211,11 +211,16 @@ courseCountApp.get('/is_free', (req, res, next) => {
}, response('is_free'));
courseCountApp.get('/night_time', (req, res, next) => {
req.result = [
{id: null, name: 'Não Classificado'},
{id: 0, name: 'Não'},
{id: 1, name: 'Sim'}
];
req.result = [{
id: 9,
name: id2str.nightTime(9)
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
name: id2str.nightTime(i)
})
}
next();
}, response('night_time'));
......@@ -659,7 +664,7 @@ rqf.addField({
resultField: 'night_time_id',
where: {
relation: '=',
type: 'boolean',
type: 'integer',
field: 'noturno_curso_t'
}
}).addValue({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment