diff --git a/backend/address2UPRN/main.py b/backend/address2UPRN/main.py index a067593e..af29a095 100644 --- a/backend/address2UPRN/main.py +++ b/backend/address2UPRN/main.py @@ -492,8 +492,6 @@ def save_results_to_s3( """ if bucket_name is None: bucket_name = os.getenv("S3_BUCKET_NAME") - if bucket_name is None: - bucket_name = "retrofit-data-dev" if not bucket_name: logger.error( diff --git a/backend/postcode_splitter/main.py b/backend/postcode_splitter/main.py index 6cc40fc4..70ecf5f1 100644 --- a/backend/postcode_splitter/main.py +++ b/backend/postcode_splitter/main.py @@ -23,15 +23,6 @@ def upload_batch_to_s3( ) -> str: """ Upload batch DataFrame to S3 as CSV. - - Args: - batch_df: The DataFrame containing batch data - task_id: The parent task ID (used for file path) - sub_task_id: The subtask ID (used for file path) - bucket_name: The S3 bucket name (defaults to env variable) - - Returns: - S3 URI (s3://bucket/key) of the uploaded file """ if bucket_name is None: bucket_name = os.getenv("S3_BUCKET_NAME")