From f47c9c748055651398ec1c15c1ef24fc18691113 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Kieras?= <jpkieras.oliveira@gmail.com>
Date: Wed, 28 Sep 2022 10:00:19 -0300
Subject: [PATCH] Update school filter(3)

---
 src/libs/routes/studentsAee.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libs/routes/studentsAee.js b/src/libs/routes/studentsAee.js
index 6e58c188..6664294e 100644
--- a/src/libs/routes/studentsAee.js
+++ b/src/libs/routes/studentsAee.js
@@ -206,10 +206,10 @@ rqf.addField({
 
 studentsAeeApp.get('/', rqf.parse(), (req, res, next) => {
     req.sql.from('numero_estudantes_aee')
-    .field('numero_estudantes_aee.ano_censo')
-    .field('COUNT(distinct numero_estudantes_aee.id_aluno)', 'total')
-    .group('numero_estudantes_aee.ano_censo')
-    .order('numero_estudantes_aee.ano_censo')
+    .field('ano_censo')
+    .field('COUNT(distinct id_aluno)', 'total')
+    .group('ano_censo')
+    .order('ano_censo')
     next();
 }, rqf.build(), (req, res, next) => {
     console.log(req.sql.toString());
-- 
GitLab