Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
93bee174
Commit
93bee174
authored
6 years ago
by
Gabriel Ruschel
Browse files
Options
Downloads
Patches
Plain Diff
Remove year > 2014 restriction
parent
ef808fa0
No related branches found
No related tags found
1 merge request
!132
Issue/403
Pipeline
#16212
canceled
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libs/routes/school.js
+0
-2
0 additions, 2 deletions
src/libs/routes/school.js
with
0 additions
and
2 deletions
src/libs/routes/school.js
+
0
−
2
View file @
93bee174
...
@@ -36,14 +36,12 @@ schoolApp.get('/year_range', cache('15 day'), (req, res, next) => {
...
@@ -36,14 +36,12 @@ schoolApp.get('/year_range', cache('15 day'), (req, res, next) => {
req
.
sql
.
from
(
'
escola
'
)
req
.
sql
.
from
(
'
escola
'
)
.
field
(
'
MIN(escola.ano_censo)
'
,
'
start_year
'
)
.
field
(
'
MIN(escola.ano_censo)
'
,
'
start_year
'
)
.
field
(
'
MAX(escola.ano_censo)
'
,
'
end_year
'
)
.
field
(
'
MAX(escola.ano_censo)
'
,
'
end_year
'
)
.
where
(
'
escola.ano_censo > 2014
'
);
next
();
next
();
},
query
,
response
(
'
range
'
));
},
query
,
response
(
'
range
'
));
schoolApp
.
get
(
'
/years
'
,
cache
(
'
15 day
'
),
(
req
,
res
,
next
)
=>
{
schoolApp
.
get
(
'
/years
'
,
cache
(
'
15 day
'
),
(
req
,
res
,
next
)
=>
{
req
.
sql
.
from
(
'
escola
'
).
req
.
sql
.
from
(
'
escola
'
).
field
(
'
DISTINCT escola.ano_censo
'
,
'
year
'
)
field
(
'
DISTINCT escola.ano_censo
'
,
'
year
'
)
.
where
(
'
escola.ano_censo > 2014
'
);
next
();
next
();
},
query
,
response
(
'
years
'
));
},
query
,
response
(
'
years
'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment