Skip to content

Commit 96f2d15

Browse files
committed
add support for reprocessing gtfs data
1 parent ecc12e2 commit 96f2d15

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

open_bus_gtfs_etl/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def from_stride(date, force_download, silent=False, archive_folder=None):
2424
base_path = archive_folder
2525
if not silent:
2626
print(f"Downloading GTFS files from {base_url} to {base_path}")
27-
if date.strftime("%Y-%m-%d") in ('2023-03-25', '2023-03-26', '2023-03-27', '2023-03-28', '2023-03-29', '2023-04-01', '2023-04-02'):
27+
if date.strftime("%Y-%m-%d") in ('2023-03-26', '2023-03-27', '2023-03-28', '2023-03-29', '2023-03-30', '2023-04-02'):
2828
print("WARNING! Only israel-public-transporation.zip is available for given date, other files are missing")
2929
filenames = ['israel-public-transportation.zip']
3030
else:

open_bus_gtfs_etl/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def main(date, silent=False, archive_folder=None, extracted_workdir=None):
3737
os.makedirs(extracted_path, exist_ok=True)
3838
if subprocess.call(['unzip', zip_file_name], cwd=extracted_path, **({'stdout': subprocess.DEVNULL} if silent else {})) != 0:
3939
if (
40-
date.strftime("%Y-%m-%d") in ('2023-03-25', '2023-03-26', '2023-03-27', '2023-03-28', '2023-03-29', '2023-04-01', '2023-04-02')
40+
date.strftime("%Y-%m-%d") in ('2023-03-26', '2023-03-27', '2023-03-28', '2023-03-29', '2023-03-30', '2023-04-02')
4141
and zip_file_name != gtfs_file_path
4242
):
4343
print("WARNING! Only israel-public-transporation.zip is available for given date, other files are missing")

0 commit comments

Comments
 (0)