diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-10-24 13:21:49 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-10-24 13:21:49 +0200 |
commit | 79faff5275cbe50445ebe90233ea03e34c4a12ca (patch) | |
tree | 3d602d47147d4c848da0c1be5022d72b51a0cad7 /src/ee/kicad | |
parent | f45706d52e42dc9fef4a4b3b98f575c83aee12ec (diff) | |
download | ee-python-79faff5275cbe50445ebe90233ea03e34c4a12ca.tar.gz ee-python-79faff5275cbe50445ebe90233ea03e34c4a12ca.tar.bz2 ee-python-79faff5275cbe50445ebe90233ea03e34c4a12ca.tar.xz ee-python-79faff5275cbe50445ebe90233ea03e34c4a12ca.zip |
kicad-make-bom: Use the part's timestamp as a unique ID when no reference is found.
Diffstat (limited to 'src/ee/kicad')
-rw-r--r-- | src/ee/kicad/make_bom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/kicad/make_bom.py b/src/ee/kicad/make_bom.py index ded3e5f..647d974 100644 --- a/src/ee/kicad/make_bom.py +++ b/src/ee/kicad/make_bom.py @@ -39,7 +39,7 @@ def work(sch, out: Path, project_uuid: UUID, new_mode, pretty): if c.has_ref_num: uri_ref = c.ref else: - uri_ref = str(uuid.uuid5(uuid.NAMESPACE_DNS, str(count))) + uri_ref = c.timestamp xml = types.Part(uri=uris.make_schematic_part_uri(project_uuid, uri_ref)) part = Part(xml) |