Skip to content

Commit

Permalink
PDF attachment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ochiu committed Sep 14, 2023
1 parent 089e882 commit 6b8baf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions queue_services/account-mailer/src/account_mailer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class _Config(): # pylint: disable=too-few-public-methods
AUTH_WEB_TOKEN_CONFIRM_PATH = os.getenv('AUTH_WEB_TOKEN_CONFIRM_PATH')
# PAD TOS PDF file name.
PAD_TOS_FILE = os.getenv('PAD_TOS_FILE', 'BCROS-Business-Pre-Authorized-Debit-Agreement.pdf')
# MHR QUALIFIED SUPPLIER PDF File name
MHR_QS_AGREEMENT_FILE = os.getenv('MHR_QS_AGREEMENT_FILE', 'MHR_QualifiedSuppliersAgreement.pdf')

# If any value is present in this flag, starts up a keycloak docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def process_attachment(email_dict: dict, attachment_type: str) -> dict:


def _get_attachment_name(attachment_type: str) -> str:
if attachment_type == AttachmentTypes.QUALIFIED_SUPPLIER:
if attachment_type == AttachmentTypes.QUALIFIED_SUPPLIER.value:
return current_app.config['MHR_QS_AGREEMENT_FILE']

return None
Expand Down

0 comments on commit 6b8baf0

Please sign in to comment.