From d2b8d478f348b29422b3830cccc63ff375a57c80 Mon Sep 17 00:00:00 2001 From: Vytor Calixto <vytorcalixto@gmail.com> Date: Thu, 26 Oct 2017 11:58:46 -0200 Subject: [PATCH] Add years 2013 and 2014 to route enrollment --- src/libs/routes/enrollment.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index 74d29d32..1d890d27 100644 --- a/src/libs/routes/enrollment.js +++ b/src/libs/routes/enrollment.js @@ -31,15 +31,13 @@ let rqf = new ReqQueryFields(); enrollmentApp.get('/year_range', (req, res, next) => { req.sql.from('matricula') .field('MIN(matricula.ano_censo)', 'start_year') - .field('MAX(matricula.ano_censo)', 'end_year') - .where('matricula.ano_censo > 2014'); + .field('MAX(matricula.ano_censo)', 'end_year'); next(); }, query, response('range')); enrollmentApp.get('/years', (req, res, next) => { req.sql.from('matricula') - .field('DISTINCT matricula.ano_censo', 'year') - .where('matricula.ano_censo > 2014'); + .field('DISTINCT matricula.ano_censo', 'year'); next(); }, query, response('years')); -- GitLab