From 02fc245e62f19823177273017c283d73378ea8ec Mon Sep 17 00:00:00 2001 From: Fernando Gbur <fgs21@inf.ufpr.br> Date: Mon, 15 Jul 2024 16:51:04 -0400 Subject: [PATCH] [ADD] First request updated. Trying to get all the people who attend schools --- src/libs/routes_v1/rateSchoolNew.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/routes_v1/rateSchoolNew.js b/src/libs/routes_v1/rateSchoolNew.js index 5b680948..a892c00d 100644 --- a/src/libs/routes_v1/rateSchoolNew.js +++ b/src/libs/routes_v1/rateSchoolNew.js @@ -315,12 +315,13 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { .field('round(sum(pnad_novo.peso_domicilio_pessoas_com_cal), 0)', 'total') .field('pnad_novo.faixa_etaria') .field('pnad_novo.ano_ref', 'year') + .where('pnad_novo.ano_censo >= 2019 AND frequenta_escola = 1') .group('pnad_novo.ano_ref') .group('pnad_novo.faixa_etaria') .order('pnad_novo.ano_ref') .order('pnad_novo.faixa_etaria') console.log(req.sql.toString()) next(); -}, query, id2str.transform(false), response('pnad_novo')); +}, query, id2str.transform(false), response('rate_school_new')); module.exports = rateSchoolNewApp; -- GitLab