fix: Get db values as dict when checking for thumbnail in existing web item
This commit is contained in:
parent
e7819f7abf
commit
a97ee918b2
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user