minor fix
This commit is contained in:
parent
d6298e82b2
commit
27383ba752
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue