Skip to content

Commit

Permalink
Corrigindo a pesquisa
Browse files Browse the repository at this point in the history
  • Loading branch information
aqela-batata-alt authored Dec 12, 2023
1 parent f2b643e commit bfbfa22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function buscar_licitacoes() {

var limite = 100
for (let licitacao in licitacoes) {
limite--
if (limite <= 0) {
break
}
Expand All @@ -46,6 +45,7 @@ function buscar_licitacoes() {
if (licitacoes[licitacao]['Data'] == filtroData || filtroData == '') {
if (licitacoes[licitacao]['Municipio'].toLowerCase().replaceAll(" ", "_").replaceAll(/[àáãâ]/g, 'a').replaceAll(/[èéê]/g, 'e').replaceAll(/[íìîĩ]/g, 'i').replaceAll(/[òóõô]/g, 'o').replaceAll(/[úùũû]/g, 'u').replaceAll(/[ç]/g, 'c') == filtroMunicipio || filtroMunicipio == 'Todos') {
lista_licitacoes.push(licitacoes[licitacao])
limite--
}
}
}
Expand Down Expand Up @@ -109,4 +109,4 @@ function mostrarResultados(id) {
});
}
resultado()
}
}

0 comments on commit bfbfa22

Please sign in to comment.