Merge pull request #907 from SchrodingersGat/bom-level-int

Make BOM levels integers
This commit is contained in:
Oliver
2020-08-17 10:43:31 +10:00
committed by GitHub

View File

@ -59,8 +59,8 @@ def ExportBom(part, fmt='csv', cascade=False, max_levels=None):
# Add items at a given layer
for item in items:
item.level = '-' * level
item.level = str(int(level))
# Avoid circular BOM references
if item.pk in uids:
continue