Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ronaldokun/fiscaliza
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldokun committed Mar 30, 2022
2 parents a752fee + 74a690e commit 453a2ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fiscaliza/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@
"Longitude": 171,
"Coordenacao": 178,
"Agrupamento": 213,
"Utilizou_algum_instrumento": 280,
"Numero_Sei_do_Processo": 422,
"Impossibilidade_acesso_online": 450,
"AppFiscaliza": 463,
Expand All @@ -425,6 +424,7 @@
"Tecnicas_Amostrais": 692,
}


ESTADOS = [
"AC",
"AL",
Expand Down
5 changes: 2 additions & 3 deletions fiscaliza/redmine.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def journal2table(journal):
for j in journal.split("\n")
if j.strip() != ""
]
if not len(set([len(t) for t in table])) == 1:
if len({len(t) for t in table}) != 1:
print(
"O texto passado como notes, não está configurado corretamente para formatar uma tabela"
)
Expand Down Expand Up @@ -94,8 +94,7 @@ def valida_fiscaliza(fiscaliza_obj: Redmine) -> None:
"""Checa se `fiscaliza_obj` é do tipo `Redmine`"""
if not isinstance(fiscaliza_obj, Redmine):
raise TypeError(
f"O Objeto Fiscaliza deve ser uma instância autenticada "
"(logada) da classe Redmine, o typo do objeto fornecido é {type(fiscaliza_obj)}"
'O Objeto Fiscaliza deve ser uma instância autenticada (logada) da classe Redmine, o typo do objeto fornecido é {type(fiscaliza_obj)}'
)


Expand Down

0 comments on commit 453a2ec

Please sign in to comment.