Skip to content

Commit

Permalink
Fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
dcjohnson24 committed Feb 12, 2024
1 parent 8dd26ff commit 5d263ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrape_data/ridership_download.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import boto3
import sys
import data_analysis.ridership_to_json as ridership_to_json
import data_analysis.compare_scheduled_and_rt as csrt
import data_analysis.static_gtfs_analysis as sga

ACCESS_KEY = sys.argv[1]
SECRET_KEY = sys.argv[2]
Expand All @@ -24,12 +24,12 @@ def save_ridership_json() -> None:
s3_ridership_json_path = 'frontend_data_files/cta_ridership_data_day_type_summary.json'
print(f'Saving {s3_ridership_json_path}')
s3.Object(
csrt.BUCKET_PUBLIC,
sga.BUCKET_PUBLIC,
f'{s3_ridership_json_path}')\
.put(Body=ridership_json)

# Check that the file was uploaded successfully
keys(csrt.BUCKET_PUBLIC, [s3_ridership_json_path])
keys(sga.BUCKET_PUBLIC, [s3_ridership_json_path])


# https://stackoverflow.com/questions/30249069/listing-contents-of-a-bucket-with-boto3
Expand Down

0 comments on commit 5d263ea

Please sign in to comment.