Skip to content
Snippets Groups Projects
Commit 5f38a4c7 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add city in dims

parent 8b468a72
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!68Fix dims in IDHM and IDHMR
Pipeline #
......@@ -157,7 +157,7 @@ idhmApp.get('/', rqf.parse(), (req, res, next) => {
.group('adh_idh_uf.idhm')
.group('adh_idh_uf.ano_censo')
.group('adh_idh_uf.estado_id')
} else if ("state" in req.filter && !("city" in req.filter)) {
} else if ("state" in req.filter && !("city" in req.filter) && !("city" in req.dims)) {
req.sql.from('adh_idh_uf')
.field('adh_idh_uf.idhm', 'total')
.field('adh_idh_uf.ano_censo', 'year')
......@@ -165,7 +165,7 @@ idhmApp.get('/', rqf.parse(), (req, res, next) => {
.group('adh_idh_uf.idhm')
.group('adh_idh_uf.ano_censo')
.group('adh_idh_uf.estado_id')
} else if ("city" in req.filter) {
} else if ("city" in req.filter || "city" in req.dims) {
req.sql.from('adh_idh')
.field('adh_idh.idhm', 'total')
.field('adh_idh.ano_censo', 'year')
......
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