mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user