diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-28 19:40:24 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-28 19:40:24 +0100 |
commit | f0c1785f42b17b5024c3e76681c603351013c780 (patch) | |
tree | 4504d2b5f93f3b8a44cbdad6ff82f54780f2c831 | |
parent | 1885e9f7418c0704cd5ca8d2fe16683d0c6e3a3a (diff) | |
download | ee-python-f0c1785f42b17b5024c3e76681c603351013c780.tar.gz ee-python-f0c1785f42b17b5024c3e76681c603351013c780.tar.bz2 ee-python-f0c1785f42b17b5024c3e76681c603351013c780.tar.xz ee-python-f0c1785f42b17b5024c3e76681c603351013c780.zip |
digikey-normalize-facts: Don't drop parts without any facts, they're
still useful.
-rw-r--r-- | src/ee/digikey/normalize_facts.py | 3 |
1 files changed, 0 insertions, 3 deletions
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) |