Skip to content
Snippets Groups Projects
Commit 480af7a8 authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[FIX] Switching the order by order in the first requests

parent adb07050
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!414[ADD] Route almost ready, some tests needed. Comments added and filters that...
...@@ -257,8 +257,8 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { ...@@ -257,8 +257,8 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.where('pnad_novo.ano_ref >= 2019 AND frequenta_escola = 1') .where('pnad_novo.ano_ref >= 2019 AND frequenta_escola = 1')
.group('pnad_novo.ano_ref') .group('pnad_novo.ano_ref')
.group('pnad_novo.faixa_etaria') .group('pnad_novo.faixa_etaria')
.order('pnad_novo.ano_ref')
.order('pnad_novo.faixa_etaria') .order('pnad_novo.faixa_etaria')
.order('pnad_novo.ano_ref')
req.querySet.push(attends_school); req.querySet.push(attends_school);
let full_population = req.sql.clone(); let full_population = req.sql.clone();
...@@ -269,8 +269,8 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { ...@@ -269,8 +269,8 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.where('pnad_novo.ano_ref >= 2019') .where('pnad_novo.ano_ref >= 2019')
.group('pnad_novo.ano_ref') .group('pnad_novo.ano_ref')
.group('pnad_novo.faixa_etaria') .group('pnad_novo.faixa_etaria')
.order('pnad_novo.ano_ref')
.order('pnad_novo.faixa_etaria') .order('pnad_novo.faixa_etaria')
.order('pnad_novo.ano_ref')
req.querySet.push(full_population); req.querySet.push(full_population);
next(); next();
......
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