#446 remove crown

This commit is contained in:
Kenneth Kehl
2023-04-13 07:13:04 -07:00
parent 6587ed5223
commit 65ea248429
23 changed files with 47 additions and 276 deletions

View File

@@ -4,17 +4,16 @@ from flask import current_app
from app.s3_client.s3_logo_client import get_s3_object
def get_mou(organisation_is_crown):
def get_mou():
bucket = current_app.config['MOU_BUCKET_NAME']
filename = 'crown.pdf' if organisation_is_crown else 'non-crown.pdf'
attachment_filename = 'U.S. Notify data sharing and financial agreement{}.pdf'.format(
'' if organisation_is_crown else ' (non-crown)'
filename = 'agreement.pdf'
attachment_filename = 'U.S. Notify data sharing and financial agreement.pdf'.format(
)
try:
key = get_s3_object(bucket, filename)
return {
'path_or_file': key.get()['Body'],
'attachment_filename': attachment_filename,
'download_name': attachment_filename,
'as_attachment': True,
}
except botocore.exceptions.ClientError as exception: