mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
fix tuple
This commit is contained in:
@@ -593,10 +593,10 @@ def process_row_from_job(job_id, job_row_number):
|
||||
@click.option("-f", "--csv_filename", required=True, help="csv file name")
|
||||
def download_csv_file_by_name(csv_filename):
|
||||
|
||||
bucket_name = (current_app.config["CSV_UPLOAD_BUCKET"]["bucket"],)
|
||||
access_key = (current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"],)
|
||||
secret = (current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"],)
|
||||
region = (current_app.config["CSV_UPLOAD_BUCKET"]["region"],)
|
||||
bucket_name = current_app.config["CSV_UPLOAD_BUCKET"]["bucket"]
|
||||
access_key = current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"]
|
||||
secret = current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"]
|
||||
region = current_app.config["CSV_UPLOAD_BUCKET"]["region"]
|
||||
print(s3.get_s3_file(bucket_name, csv_filename, access_key, secret, region))
|
||||
|
||||
|
||||
@@ -865,14 +865,12 @@ def promote_user_to_platform_admin(user_email_address):
|
||||
|
||||
@notify_command(name="purge-csv-bucket")
|
||||
def purge_csv_bucket():
|
||||
bucket_name = (current_app.config["CSV_UPLOAD_BUCKET"]["bucket"],)
|
||||
access_key = (current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"],)
|
||||
secret = (current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"],)
|
||||
region = (current_app.config["CSV_UPLOAD_BUCKET"]["region"],)
|
||||
bucket_name = current_app.config["CSV_UPLOAD_BUCKET"]["bucket"]
|
||||
access_key = current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"]
|
||||
secret = current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"]
|
||||
region = current_app.config["CSV_UPLOAD_BUCKET"]["region"]
|
||||
|
||||
print("ABOUT TO RUN PURGE CSV BUCKET")
|
||||
s3.purge_bucket(bucket_name, access_key, secret, region)
|
||||
print("RAN PURGE CSV BUCKET")
|
||||
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user