mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
remove components related to MOU and agreement (#476)
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user