aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-10-24 13:21:49 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-10-24 13:21:49 +0200
commit79faff5275cbe50445ebe90233ea03e34c4a12ca (patch)
tree3d602d47147d4c848da0c1be5022d72b51a0cad7 /src
parentf45706d52e42dc9fef4a4b3b98f575c83aee12ec (diff)
downloadee-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')
-rw-r--r--src/ee/kicad/make_bom.py2
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)