This commit is contained in:
zandercymatics 2024-06-17 14:22:10 -06:00
parent de6ff1d7d1
commit a64ecbd0d2
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -18,6 +18,7 @@ logger = logging.getLogger(__name__)
class Command(BaseCommand):
"""Emails a encrypted zip file containing a csv of our domains and domain requests"""
help = (
"Generates and uploads a domain-metadata.csv file to our S3 bucket "
"which is based off of all existing Domains."
@ -65,6 +66,7 @@ class Command(BaseCommand):
"report_function": csv_export.DomainRequestExport.export_full_domain_request_report,
},
}
# Set the password equal to our content in SECRET_ENCRYPT_METADATA.
# For local development, this will be "devpwd" unless otherwise set.
override = settings.SECRET_ENCRYPT_METADATA is None and not settings.IS_PRODUCTION
@ -81,7 +83,6 @@ class Command(BaseCommand):
attachment_file=encrypted_zip_in_bytes,
)
def get_encrypted_zip(self, zip_filename, reports, password):
"""Helper function for encrypting the attachment file"""