[BoM][Fixed] Digi-key link in the HTML output.

This commit is contained in:
Salvador E. Tropea 2022-11-07 10:10:59 -03:00
parent c175dd637f
commit ca1faa9102
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
yet. (#323)
- Report: Problems when using NPTH holes with sizes that doesn't correspond to
real drill tools. It generated bogus reports about wrong OARs. (#326)
- BoM: Digi-key link in the HTML output.
## [1.4.0] - 2022-10-12
### Added

View File

@ -245,7 +245,7 @@ def content_table(html, groups, headings, head_names, cfg, link_datasheet, link_
for n, r in enumerate(row):
# A link to Digi-Key?
if link_digikey and headings[n] in link_digikey:
r = '<a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=' + r + '">' + r + '</a>'
r = '<a href="https://www.digikey.com/products/en?keywords=' + r + '">' + r + '</a>'
# Link this column to the datasheet?
if link_datasheet == n and datasheet.startswith('http'):
r = '<a href="' + datasheet + '">' + r + '</a>'