diff --git a/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md b/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md index fc4bd135..f7616363 100644 --- a/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md +++ b/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md @@ -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 diff --git a/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py b/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py index 0f106d98..9d7a9a13 100644 --- a/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py +++ b/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py @@ -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()