minor fix

This commit is contained in:
wilsongomez 2022-04-06 16:15:02 -05:00
parent d6298e82b2
commit 27383ba752
1 changed files with 2 additions and 2 deletions

View File

@ -736,12 +736,12 @@ def create_app(dbname):
'images': [img.image for img in cat.images]
}
if cat.childs:
value['childs'] = [_get_childs(c) for c in cat.childs]
value['childs'] = [_get_childs(c) for c in cat.childs if c.active]
return value
shop = Shop(shopId)
categories = [
c for c in shop.product_categories if c.accounting == False
c for c in shop.product_categories if c.accounting == False and c.active
]
categoryTree = []
if categories: