Skip to content
Snippets Groups Projects
Commit 00b8018c authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Fix typo in /spatial

parent abff7df5
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!34Db simcaq dev2
Pipeline #
......@@ -280,12 +280,12 @@ spatialApp.get('/educational', rqf.parse(), rqf.build(), (req, res, next) => {
const schoolsPerLocationQry = req.sql.clone()
.field('\'Brasil\'', 'name')
.field('escola.cod_localizacao', 'location')
.field('COUNT(DISTINCT(escola.cod_entidade))', 'total')
.field('COUNT(DISTINCT(escola.id))', 'total')
.field('escola.ano_censo', 'census_year')
.from('escola')
.join('turma', null, 'turma.ano_censo=escola.ano_censo AND turma.escola_id=escola.id')
.where(`escola.ano_censo IN (${censusYearQry})`)
.where('truma.tipo_turma_id = 0')
.where('turma.tipo_turma_id = 0')
.group('escola.cod_localizacao')
.group('escola.ano_censo')
.order('escola.cod_localizacao');
......
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