Skip to content
Snippets Groups Projects
Commit 9f3cccba authored by jpko19's avatar jpko19
Browse files

Fix pee_por_categoria

parent ea3ce29e
No related branches found
No related tags found
3 merge requests!329Update enrollment - new filters,!324Dev,!309Merge new updates into master
...@@ -770,7 +770,7 @@ rqf.addField({ ...@@ -770,7 +770,7 @@ rqf.addField({
}); });
enrollmentApp.get('/', rqf.parse(), (req, res, next) => { enrollmentApp.get('/', rqf.parse(), (req, res, next) => {
if('pee_por_categotria' in req.field){ if('pee_por_categotria' in req.dims){
req.sql.field('SUM(SUM(CASE WHEN cegueira = true THEN 1 ELSE 0)', 'total_cegueira') req.sql.field('SUM(SUM(CASE WHEN cegueira = true THEN 1 ELSE 0)', 'total_cegueira')
.field('SUM(CASE WHEN baixa_visao = true THEN 1 ELSE 0)', 'total_baixa_visao') .field('SUM(CASE WHEN baixa_visao = true THEN 1 ELSE 0)', 'total_baixa_visao')
.field('SUM(CASE WHEN surdez = true THEN 1 ELSE 0)', 'total_surdez') .field('SUM(CASE WHEN surdez = true THEN 1 ELSE 0)', 'total_surdez')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment