mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
b27ecf54d7
commit
97103207b6
@ -67,7 +67,7 @@ def ExportBom(part, fmt='csv', cascade=False, max_levels=None):
|
||||
|
||||
bom_items.append(item)
|
||||
|
||||
if item.sub_part.assembly:
|
||||
if item.sub_part.assembly:
|
||||
if max_levels is None or level < max_levels:
|
||||
add_items(item.sub_part.bom_items.all().order_by('id'), level + 1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user