mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +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)
|
bom_items.append(item)
|
||||||
|
|
||||||
if item.sub_part.assembly:
|
if item.sub_part.assembly:
|
||||||
if max_levels is None or level < max_levels:
|
if max_levels is None or level < max_levels:
|
||||||
add_items(item.sub_part.bom_items.all().order_by('id'), level + 1)
|
add_items(item.sub_part.bom_items.all().order_by('id'), level + 1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user