mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
get description only for images, for now
This commit is contained in:
parent
f24f97baae
commit
97815f807a
@ -35,11 +35,11 @@ def process_image_descriptions(media_attachments):
|
||||
""" Attempt to extract information for image descriptions. """
|
||||
image_descriptions = []
|
||||
for media in media_attachments:
|
||||
if media.get("description") != None:
|
||||
if media.get("description", "") != "":
|
||||
image_descriptions.append(media.get("description"))
|
||||
idescriptions = ""
|
||||
for image in image_descriptions:
|
||||
idescriptions += _("Image description: {}").format(image)
|
||||
idescriptions = idescriptions + _("Image description: {}").format(image) + " "
|
||||
return idescriptions
|
||||
|
||||
def remove_unneeded_variables(template, variables):
|
||||
|
Loading…
Reference in New Issue
Block a user