summaryrefslogtreecommitdiff
path: root/fbin/file_storage
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2019-12-05 21:55:39 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2019-12-05 21:56:33 +0100
commit535ee82e93cd0b8bc55b44a239351851bb18a441 (patch)
tree95707ec708a45d86ce884663f44db52da00e974d /fbin/file_storage
parent13d38291bd07401bd16b6e6805edc72bf0029b2f (diff)
s3: Fix typos
Diffstat (limited to 'fbin/file_storage')
-rw-r--r--fbin/file_storage/s3.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fbin/file_storage/s3.py b/fbin/file_storage/s3.py
index e81f8b4..9d0bb56 100644
--- a/fbin/file_storage/s3.py
+++ b/fbin/file_storage/s3.py
@@ -34,7 +34,7 @@ class Storage(BaseStorage):
def get_file(self, f, thumb=True):
key = self.get_object_key(f, thumb=thumb)
if thumb:
- bucket = self.app.config['S3_THUMB_BUCKET'])
+ bucket = self.app.config['S3_THUMB_BUCKET']
else:
bucket = self.app.config['S3_BUCKET']
obj = self.client.Object(bucket, key)
@@ -74,6 +74,6 @@ class Storage(BaseStorage):
raise
def store_thumbnail(self, f, stream):
- bucket = self.client.Bucket(self.app.config['S3_THUMB_BUCKET']))
+ bucket = self.client.Bucket(self.app.config['S3_THUMB_BUCKET'])
key = self.get_object_key(f, thumb=True)
obj = bucket.upload_fileobj(Fileobj=stream, Key=key)