[sync] Image upload refactoring
This commit is contained in:
1 parent
c3cbdd24ff
commit
bb0a9a00f6
1 file changed
+1
-1
@@ -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()])
|
||||
|
||||
|
||||
Reference in new issue
Block a user