mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 02:19:23 +02:00
Lint
This commit is contained in:
parent
de6ff1d7d1
commit
a64ecbd0d2
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
"""Emails a encrypted zip file containing a csv of our domains and domain requests"""
|
"""Emails a encrypted zip file containing a csv of our domains and domain requests"""
|
||||||
|
|
||||||
help = (
|
help = (
|
||||||
"Generates and uploads a domain-metadata.csv file to our S3 bucket "
|
"Generates and uploads a domain-metadata.csv file to our S3 bucket "
|
||||||
"which is based off of all existing Domains."
|
"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,
|
"report_function": csv_export.DomainRequestExport.export_full_domain_request_report,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set the password equal to our content in SECRET_ENCRYPT_METADATA.
|
# Set the password equal to our content in SECRET_ENCRYPT_METADATA.
|
||||||
# For local development, this will be "devpwd" unless otherwise set.
|
# For local development, this will be "devpwd" unless otherwise set.
|
||||||
override = settings.SECRET_ENCRYPT_METADATA is None and not settings.IS_PRODUCTION
|
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,
|
attachment_file=encrypted_zip_in_bytes,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_encrypted_zip(self, zip_filename, reports, password):
|
def get_encrypted_zip(self, zip_filename, reports, password):
|
||||||
"""Helper function for encrypting the attachment file"""
|
"""Helper function for encrypting the attachment file"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue