Skip to content

Commit

Permalink
remove verificação de tab
Browse files Browse the repository at this point in the history
  • Loading branch information
vtr363 committed Jan 13, 2025
1 parent e7fed7b commit a4c41a0
Showing 1 changed file with 8 additions and 11 deletions.
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 a4c41a0

Please sign in to comment.