Skip to content
Snippets Groups Projects
Commit 4d3dc7bd authored by Victor Picussa's avatar Victor Picussa
Browse files

Merge branch 'master' into cub

parents fe90fbc3 9262c873
No related branches found
No related tags found
1 merge request!133Release v1.4.0
......@@ -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
......
......@@ -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'));
......
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