aboutsummaryrefslogtreecommitdiff
path: root/src/ee
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee')
-rw-r--r--src/ee/tools/bom_to_csv.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ee/tools/bom_to_csv.py b/src/ee/tools/bom_to_csv.py
index 181eb4e..99aa98f 100644
--- a/src/ee/tools/bom_to_csv.py
+++ b/src/ee/tools/bom_to_csv.py
@@ -35,14 +35,14 @@ out_path = Path(args.out)
bom_parts, supplier_parts = load_bom(bom_path, part_files)
check_bom(bom_parts, supplier_parts)
-lines = generate_bom(args.allow_incomplete, bom_parts, supplier_parts)
+bom = generate_bom(args.allow_incomplete, bom_parts, supplier_parts)
-if lines is not None:
+if bom is not None:
with out_path.open("w") as f:
w = csv.writer(f)
w.writerow(["Quantity", "MPN", "SPN", "References"])
- for line in lines:
+ for line in bom.lines:
mpn = line.part.get_only_mpn()
spn = line.part.get_only_spn()