From 9db039a6c036bd1fc8153e45c1f8dd7aad7f00a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Frans=20Pondaco=20Winandy?= <jvfpw18@inf.ufpr.br> Date: Fri, 29 May 2020 09:55:12 -0300 Subject: [PATCH] Change classroom qnt salas var --- src/libs/routes/classroom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/routes/classroom.js b/src/libs/routes/classroom.js index 538ca7b0..8e2b6a7e 100644 --- a/src/libs/routes/classroom.js +++ b/src/libs/routes/classroom.js @@ -244,7 +244,7 @@ rqf.addField({ classroomApp.get('/', cache('15 day'), rqf.parse(), rqf.build(), (req, res, next) => { req.sql.from('escola') - .field('SUM(escola.num_salas)', 'total') + .field('SUM(escola.qtde_salas_utilizadas_dentro)', 'total') .field("'Brasil'", 'name') .field('escola.ano_censo', 'year') .group('escola.ano_censo') -- GitLab