diff --git a/src/libs/routes/pibpercapita.js b/src/libs/routes/pibpercapita.js index 5fd9bd7910bcc2bc92a46619112ed91ba98e5a9e..2e1ced8944d9d0ced708371f03f64afd339560bb 100644 --- a/src/libs/routes/pibpercapita.js +++ b/src/libs/routes/pibpercapita.js @@ -27,15 +27,13 @@ pibpercapitaApp.use(cache('15 day')); pibpercapitaApp.get('/year_range', (req, res, next) => { req.sql.from('ibge_pib') .field('MIN(ibge_pib.ano_censo)', 'start_year') - .field('MAX(ibge_pib.ano_censo)', 'end_year') - .where('ibge_pib.ano_censo <> 2014 AND ibge_pib.ano_censo <> 2013'); + .field('MAX(ibge_pib.ano_censo)', 'end_year'); next(); }, query, response('range')); pibpercapitaApp.get('/years', (req, res, next) => { req.sql.from('ibge_pib'). - field('DISTINCT ibge_pib.ano_censo', 'year') - .where('ibge_pib.ano_censo <> 2014 AND ibge_pib.ano_censo <> 2013'); + field('DISTINCT ibge_pib.ano_censo', 'year'); next(); }, query, response('years'));