diff --git a/CHANGELOG.md b/CHANGELOG.md index 18b73b14ffe16a60acf7f0db4a87e1088d338729..d32a346a56d17b9757fa8f418cf4cd772970bd4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.3.3 - 2018-06-27 +### Changed +- Removed restriction of year > 2014 of school count route + ## 1.3.2 - 2018-06-20 ### Changed - Fixed math error in classroom count at total classroom needed expression diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js index 0b3742fe9edb9ba0f701443235e0d1bb5592d8a5..835181fc4669cd0d98b8b635045595ae4ee272ec 100644 --- a/src/libs/routes/school.js +++ b/src/libs/routes/school.js @@ -36,14 +36,12 @@ schoolApp.get('/year_range', cache('15 day'), (req, res, next) => { req.sql.from('escola') .field('MIN(escola.ano_censo)', 'start_year') .field('MAX(escola.ano_censo)', 'end_year') - .where('escola.ano_censo > 2014'); next(); }, query, response('range')); schoolApp.get('/years', cache('15 day'), (req, res, next) => { req.sql.from('escola'). field('DISTINCT escola.ano_censo', 'year') - .where('escola.ano_censo > 2014'); next(); }, query, response('years'));