mirror of
https://github.com/ihabunek/toot.git
synced 2024-12-04 14:46:33 -05:00
Fix bug in media upload
This commit is contained in:
parent
b85daabb9d
commit
05dbd7bb57
@ -242,7 +242,7 @@ def _upload_media(app, user, media, descriptions, thumbnails):
|
|||||||
for idx, file in enumerate(media):
|
for idx, file in enumerate(media):
|
||||||
description = descriptions[idx].strip() if idx < len(descriptions) else None
|
description = descriptions[idx].strip() if idx < len(descriptions) else None
|
||||||
thumbnail = thumbnails[idx] if idx < len(thumbnails) else None
|
thumbnail = thumbnails[idx] if idx < len(thumbnails) else None
|
||||||
result = _do_upload(app, user, file, description, thumbnail)
|
result = _do_upload(app, user, file, description, thumbnail).json()
|
||||||
uploaded_media.append(result)
|
uploaded_media.append(result)
|
||||||
|
|
||||||
_wait_until_all_processed(app, user, uploaded_media)
|
_wait_until_all_processed(app, user, uploaded_media)
|
||||||
|
Loading…
Reference in New Issue
Block a user