Receive and save incoming images
This commit is contained in:
parent
88e4705717
commit
ad7ce6595b
7 changed files with 62 additions and 29 deletions
|
@ -276,10 +276,5 @@ def image_formatter(image, default_path=None):
|
|||
|
||||
|
||||
def image_attachments_formatter(images):
|
||||
''' create a list of image attachemnts '''
|
||||
if not isinstance(images, list):
|
||||
images = [images]
|
||||
attachments = []
|
||||
for image in images:
|
||||
attachments.append(image_formatter(image))
|
||||
return attachments
|
||||
''' create a list of image attachments '''
|
||||
return [image_formatter(i) for i in images]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue