Skip to content

Commit

Permalink
Fix issue with deduplication of connectors.
Browse files Browse the repository at this point in the history
unit is set to emptystring which doesen't deduplicate with the none 
present when unit is not set
  • Loading branch information
Tyler-Ward committed Oct 17, 2020
1 parent 187adfd commit 224b7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wireviz/Harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def bom(self):
+ (f', {connector.pincount} pins' if connector.show_pincount else '')
+ (f', {connector.color}' if connector.color else ''))
bom_entries.append({
'item': description, 'qty': 1, 'unit': '', 'designators': connector.name if connector.show_name else None,
'item': description, 'qty': 1, 'unit': None, 'designators': connector.name if connector.show_name else None,
'manufacturer': connector.manufacturer, 'mpn': connector.mpn, 'pn': connector.pn
})

Expand Down

0 comments on commit 224b7f2

Please sign in to comment.