mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
#446 remove crown
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user