diff options
Diffstat (limited to 'src/ee/element14')
-rw-r--r-- | src/ee/element14/search_parts.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ee/element14/search_parts.py b/src/ee/element14/search_parts.py index 55e8130..cfa1d34 100644 --- a/src/ee/element14/search_parts.py +++ b/src/ee/element14/search_parts.py @@ -14,9 +14,9 @@ def search_parts(in_path: Path, out_path: Path, cache_dir: Path, config: Element client = Element14Client(config, cache_dir) for part in in_db.iterparts(): - mpn = bom_file_utils.find_pn(part) + mpn = bom_file_utils.first_pn(part) - query = mpn # TODO: suppor dpn + query = mpn # TODO: support dpn out_id = query @@ -24,8 +24,8 @@ def search_parts(in_path: Path, out_path: Path, cache_dir: Path, config: Element out_part = types.Part(id=out_id, distributor_info=types.DistributorInfo(), - part_numbers=part.part_numbersProp) + references=part.referencesProp) di = out_part.distributor_infoProp print("Saving {} work parts".format(out_parts.size())) - save_db(out_path, out_parts) + save_db(out_path, out_parts, sort=True) |