Update export-bom.py
makes bom generation add image for pcbs as well
This commit is contained in:
4
.github/workflows/scripts/export-bom.py
vendored
4
.github/workflows/scripts/export-bom.py
vendored
@@ -108,7 +108,7 @@ for version in versions:
|
||||
# handling images
|
||||
if column == 1 and row[3] != "FDM":
|
||||
f.write("<th><img src='" + row[column] + "' /></th>")
|
||||
elif column == 1 and row[3] == "FDM":
|
||||
elif column == 1 and (row[3] == "FDM" or row[3] == "PCB"):
|
||||
f.write("<th><img src='img/" + row[0] + ".png' /></th>")
|
||||
|
||||
# handling links
|
||||
@@ -122,4 +122,4 @@ for version in versions:
|
||||
line_count += 1
|
||||
|
||||
f.write("</table></body></html>")
|
||||
f.close()
|
||||
f.close()
|
||||
|
||||
Reference in New Issue
Block a user