Skip to content
Snippets Groups Projects
Commit 9262c873 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Merge branch 'issue/403'

Related: !132
parents ef808fa0 109d4d03
No related branches found
No related tags found
No related merge requests found
Pipeline #16217 canceled
......@@ -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