From d6a3c5a42f01d6610cfc2e5d74a3e1f10d82798d Mon Sep 17 00:00:00 2001 From: Domenico Iezzi Date: Mon, 25 Sep 2017 21:38:48 +0200 Subject: [PATCH] Fixed wrong object name causing error Signed-off-by: Domenico Iezzi --- gpapi/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpapi/utils.py b/gpapi/utils.py index 1da69cc..854deb0 100644 --- a/gpapi/utils.py +++ b/gpapi/utils.py @@ -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