From 9ce23218906fa56193873af1c61f8121bbb7f867 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 12 Sep 2023 13:44:00 -0300 Subject: [PATCH] [BoM][Fixed] LCSC links - Missing .html --- kibot/bom/html_writer.py | 2 +- kibot/bom/xlsx_writer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/bom/html_writer.py b/kibot/bom/html_writer.py index 275f8060d..f393e10d3 100644 --- a/kibot/bom/html_writer.py +++ b/kibot/bom/html_writer.py @@ -250,7 +250,7 @@ def content_table(html, groups, headings, head_names, cfg, link_datasheet, link_ if link_mouser and headings[n] in link_mouser: r = '' + r + '' if link_lcsc and headings[n] in link_lcsc: - r = '' + r + '' + r = '' + r + '' # Link this column to the datasheet? if link_datasheet == n and datasheet.startswith('http'): r = '' + r + '' diff --git a/kibot/bom/xlsx_writer.py b/kibot/bom/xlsx_writer.py index 082977b77..855d8879f 100644 --- a/kibot/bom/xlsx_writer.py +++ b/kibot/bom/xlsx_writer.py @@ -816,7 +816,7 @@ def write_xlsx(filename, groups, col_fields, head_names, cfg): worksheet.write_url(row_count, i, url, fmt, cell) # A link to LCSC? elif link_lcsc and col_fields[i] in link_lcsc: - url = 'https://www.lcsc.com/product-detail/' + cell + url = 'https://www.lcsc.com/product-detail/' + cell + '.html' worksheet.write_url(row_count, i, url, fmt, cell) else: worksheet.write_string(row_count, i, cell, fmt)