Update export-bom.py

makes bom generation add image for pcbs as well
This commit is contained in:
Stephen Hawes
2023-06-09 18:50:33 -04:00
committed by GitHub
parent cc785a58ec
commit bf2116394c

View File

@@ -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()