Fixed wrong object name causing error

Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
This commit is contained in:
Domenico Iezzi 2017-09-25 21:38:48 +02:00
parent 1739425d35
commit d6a3c5a42f

View File

@ -14,9 +14,9 @@ def fromDocToDictionary(app):
} for o in app.offer],
"images": [{
"imageType": img.imageType,
"width": img.Dimension.width if hasattr(img.Dimension, "width")
"width": img.dimension.width if hasattr(img.dimension, "width")
else 0,
"height": img.Dimension.height if hasattr(img.Dimension, "height")
"height": img.dimension.height if hasattr(img.dimension, "height")
else 0,
"url": img.imageUrl,
"supportsFifeUrlOptions": img.supportsFifeUrlOptions