Skip to content
Snippets Groups Projects
Commit 96f06b37 authored by Iuri de Silvio's avatar Iuri de Silvio
Browse files

Corrige busca de cidade. O IBGE agora lista tudo como maiúscula.

parent 4192bbdc
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,7 @@ def _get_estado_info(db, sigla): ...@@ -94,6 +94,7 @@ def _get_estado_info(db, sigla):
def _get_cidade_info(db, sigla_uf, nome_cidade): def _get_cidade_info(db, sigla_uf, nome_cidade):
sigla_uf = sigla_uf.upper() sigla_uf = sigla_uf.upper()
nome_cidade = nome_cidade.upper()
sigla_uf_nome_cidade = '%s_%s' % (sigla_uf, nome_cidade) sigla_uf_nome_cidade = '%s_%s' % (sigla_uf, nome_cidade)
fields = { fields = {
'_id': False, '_id': False,
......
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