Fix report download buttons showing as disabled (#2840)

* Fix for lazy loading while checking if file exists

* Fixed linting errors

* Fixed for static scan
This commit is contained in:
Alex Janousek
2025-08-19 10:06:50 -04:00
committed by GitHub
parent 808aeabbe1
commit 74c1648c8d
4 changed files with 100 additions and 19 deletions

View File

@@ -16,12 +16,16 @@ NEW_FILE_LOCATION_STRUCTURE = "{}-service-notify/{}.csv"
def get_csv_location(service_id, upload_id):
bucket = current_app.config["CSV_UPLOAD_BUCKET"]["bucket"]
key = NEW_FILE_LOCATION_STRUCTURE.format(service_id, upload_id)
region = current_app.config["CSV_UPLOAD_BUCKET"]["region"]
return (
current_app.config["CSV_UPLOAD_BUCKET"]["bucket"],
NEW_FILE_LOCATION_STRUCTURE.format(service_id, upload_id),
bucket,
key,
current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"],
current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"],
current_app.config["CSV_UPLOAD_BUCKET"]["region"],
region,
)