mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 09:13:58 -04:00
comments and logs
This commit is contained in:
@@ -12,9 +12,9 @@ LETTER_TEMP_LOGO_LOCATION = 'letters/static/images/letter-template/temp-{user_id
|
||||
|
||||
|
||||
def get_s3_object(bucket_name, filename):
|
||||
# To inspect contents: obj.get()['Body'].read().decode('utf-8')
|
||||
s3 = resource('s3')
|
||||
obj = s3.Object(bucket_name, filename)
|
||||
string_body = obj.get()['Body'].read().decode('utf-8')
|
||||
return obj
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user