fix: Get db values as dict when checking for thumbnail in existing web item

This commit is contained in:
marination 2021-10-19 18:39:48 +05:30
parent e7819f7abf
commit a97ee918b2

View File

@ -51,7 +51,8 @@ def execute():
filters={
"item_code": item.item_code
},
fieldname=["website_image", "thumbnail", "name"]
fieldname=["website_image", "thumbnail", "name"],
as_dict=True
)[0]
if web_item_doc.get("website_image") and not web_item_doc.get("thumbnail"):