Skip to content

Commit

Permalink
Fix attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
dcjohnson24 committed Feb 12, 2024
1 parent 5d263ea commit 8eeb097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrape_data/ridership_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
sga.BUCKET_PUBLIC,
sga.BUCKET,
f'{s3_ridership_json_path}')\
.put(Body=ridership_json)

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


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

0 comments on commit 8eeb097

Please sign in to comment.