aboutsummaryrefslogtreecommitdiff
path: root/src/ee/kicad/make_bom.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-27 15:16:12 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-27 15:16:12 +0200
commitd8bb3aa6f51b331ef6ce3558707627be7a50c7ad (patch)
tree780e426f8286fe9223d1fa6235464868bbef3d7c /src/ee/kicad/make_bom.py
parent94e8537430ab7496e4b8e697581d65b06cf8b979 (diff)
downloadee-python-d8bb3aa6f51b331ef6ce3558707627be7a50c7ad.tar.gz
ee-python-d8bb3aa6f51b331ef6ce3558707627be7a50c7ad.tar.bz2
ee-python-d8bb3aa6f51b331ef6ce3558707627be7a50c7ad.tar.xz
ee-python-d8bb3aa6f51b331ef6ce3558707627be7a50c7ad.zip
souffle:
o Allowing to set MPNs when importing facts. o ninja: Allowing the user to have its own datalog files under ee/custom/kicad-souffle.dl and ee/custom/$supplier-souffle.dl. make_bom: Generate per-field URIs for custom URIs. Better than making values that contain custom field name + value.
Diffstat (limited to 'src/ee/kicad/make_bom.py')
-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 aa735b3..6069fcc 100644
--- a/src/ee/kicad/make_bom.py
+++ b/src/ee/kicad/make_bom.py
@@ -67,7 +67,7 @@ def work(sch, out: Path, project_uuid: UUID, new_mode, pretty):
for f in c.named_fields:
if f.value is not None and len(f.value):
- part.facts.add(sch_fact_types.field, "{}:{}".format(f.name, f.value))
+ part.facts.add(sch_fact_types.make_custom_field_key(f.name), f.value)
parts.add_entry(part, True)