From 69e3e5ef16a14956e2077891ae9acb835317011e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 15 Oct 2019 15:52:15 +0200 Subject: bom-to-csv: Fixing, was broken after generate_bom refactoring. --- src/ee/tools/bom_to_csv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ee') 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() -- cgit v1.2.3