[sync] Image upload refactoring

This commit is contained in:
tmshv committed 2019-10-14 16:29:56 +03:00
1 parent c3cbdd24ff
commit bb0a9a00f6
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ class Image(Model):
file = i['file']
filename = os.path.basename(file)
await request.s3_put('images/'+filename, file)
await request.s3_put(f'images/{filename}', file)
await asyncio.wait([fn(i) for i in self.data.values()])