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
commit 89c7f72caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ 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: