remove components related to MOU and agreement (#476)

Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
This commit is contained in:
Kenneth Kehl
2023-04-28 11:08:12 -07:00
committed by GitHub
parent f5f666884c
commit 54abfb3a4d
27 changed files with 15 additions and 1315 deletions

View File

@@ -1,22 +0,0 @@
import botocore
from flask import current_app
from app.s3_client.s3_logo_client import get_s3_object
def get_mou():
bucket = current_app.config['MOU_BUCKET_NAME']
filename = 'agreement.pdf'
attachment_filename = 'U.S. Notify data sharing and financial agreement.pdf'
try:
key = get_s3_object(bucket, filename)
return {
'path_or_file': key.get()['Body'],
'download_name': attachment_filename,
'as_attachment': True,
}
except botocore.exceptions.ClientError as exception:
current_app.logger.error("Unable to download s3 file {}/{}".format(
bucket, filename
))
raise exception