Skip to content

Commit

Permalink
Remove teste de Ordem de Serviço regular do gtfs (#386)
Browse files Browse the repository at this point in the history
* remove verificação de tab

* atualiza changelog
  • Loading branch information
vtr363 authored Jan 13, 2025
1 parent e7fed7b commit 481d928
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
5 changes: 5 additions & 0 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog - gtfs

## [1.2.1] - 2025-01-13

### Corrigido
- Removido teste de Ordem de Serviço regular (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/386)

## [1.2.0] - 2025-01-03

### Adicionado
Expand Down
19 changes: 8 additions & 11 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,15 @@ def processa_ordem_servico(
None
"""

if (
len([sheet for sheet in sheetnames if "ANEXO I:" in sheet]) != 1
and regular_sheet_index is None
):
raise Exception(
"More than 1 regular sheet in the file. Please specify the regular sheet index."
)
# if (
# len([sheet for sheet in sheetnames if "ANEXO I " in sheet]) != 1
# and regular_sheet_index is None
# ):
# raise Exception(
# "More than 1 regular sheet in the file. Please specify the regular sheet index."
# )

if regular_sheet_index is None:
regular_sheet_index = next(
(i for i, name in enumerate(sheetnames) if "ANEXO I" in name), None
)
regular_sheet_index = next((i for i, name in enumerate(sheetnames) if "ANEXO I" in name), None)

quadro_geral = pd.DataFrame()

Expand Down

0 comments on commit 481d928

Please sign in to comment.