Skip to content

Commit

Permalink
Updates 2024-07-06 - Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISCARLON committed Jul 6, 2024
1 parent dbd1a62 commit 785e907
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ async def london_datastore():
"""
Fetch data from London Datastore API, process files, and upload as parquet to S3.
"""
s3_bucket = 'your-s3-bucket-name'

try:
num_rows = 20
url = f"https://data.london.gov.uk/api/action/package_search?rows={num_rows}"
Expand All @@ -30,7 +32,7 @@ async def london_datastore():
task = asyncio.create_task(process_file(session, result, resource))
tasks.append(task)
await asyncio.gather(*tasks)
print(f"Finished processing all files. Output saved in S3 bucket: {S3_BUCKET_NAME}")
print(f"Finished processing all files. Output saved in S3 bucket: {s3_bucket}")
except Exception as e:
print(f"An error occurred in london_datastore: {str(e)}")
raise
Expand Down

0 comments on commit 785e907

Please sign in to comment.