Skip to content

Commit

Permalink
adiciona filtro para os nomes de tabs da planilha de controle os
Browse files Browse the repository at this point in the history
  • Loading branch information
vtr363 committed Aug 2, 2024
1 parent 88cf689 commit dc1058a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def get_raw_drive_files(os_control, local_filepath: list, regular_sheet_index: i

# Salva os nomes das planilhas
sheetnames = xl.load_workbook(file_bytes_os).sheetnames
sheetnames = [name for name in sheetnames if "ANEXO" in name]
log(f"tabs encontradas na planilha Controle OS: {sheetnames}")

with zipfile.ZipFile(file_bytes_gtfs, "r") as zipped_file:
for filename in list(constants.GTFS_TABLE_CAPTURE_PARAMS.value.keys()):
Expand Down

0 comments on commit dc1058a

Please sign in to comment.