From 79faff5275cbe50445ebe90233ea03e34c4a12ca Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 24 Oct 2019 13:21:49 +0200 Subject: kicad-make-bom: Use the part's timestamp as a unique ID when no reference is found. --- src/ee/kicad/make_bom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3