From f0c1785f42b17b5024c3e76681c603351013c780 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 28 Mar 2019 19:40:24 +0100 Subject: digikey-normalize-facts: Don't drop parts without any facts, they're still useful. --- src/ee/digikey/normalize_facts.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ee') diff --git a/src/ee/digikey/normalize_facts.py b/src/ee/digikey/normalize_facts.py index d7546c3..1ffc16a 100644 --- a/src/ee/digikey/normalize_facts.py +++ b/src/ee/digikey/normalize_facts.py @@ -146,9 +146,6 @@ def normalize_facts(in_path: Path, out_path: Path): facts = [types.Fact(key=uris.make_fact_key(key), value=value) for key, value in results] out_facts.extend(facts) - if len(out_facts) == 0: - continue - part.factsProp.factProp = out_facts out_parts.add_entry(part, True) -- cgit v1.2.3