diff --git a/.github/workflows/scripts/export-bom.py b/.github/workflows/scripts/export-bom.py
index 329866a..4466e15 100644
--- a/.github/workflows/scripts/export-bom.py
+++ b/.github/workflows/scripts/export-bom.py
@@ -13,108 +13,113 @@ if not os.path.exists(dirName):
else:
print("Directory " , dirName , " already exists")
+versions = [
+ ["8mm", "bom-8.csv"],
+ ["12mm", "bom-12.csv"],
+ ["16mm", "bom-16.csv"]
+]
-# make html file that will become our BOM
-f = open(dirName + "/bom_" + sys.argv[1] + ".html", "w")
-f.write("""
-
-
-
-
-
-
-""")
+ #logo {
+ width: 250px;
+ position: absolute;
+ top: 30px;
+ right: 50px;
+ }
-#write page title based on script
-f.write("LumenPnP Feeder BOM " + sys.argv[1])
+ tr:hover {
+ background-color: #444;
+ }
+
+
+
+
+ """)
-#write the beginning of table, and row for header
-f.write("
Download the Source Here

")
+ #write page title based on script
+ f.write("LumenPnP " + version[0] + " Feeder BOM " + sys.argv[1])
-with open('bom.csv') as bom:
- csv_reader = csv.reader(bom, delimiter=',')
- line_count = 0
-
- for row in csv_reader:
- column = 0
+ #write the beginning of table, and row for header
+ f.write("Download the Source Here

")
- if line_count == 0: #if header row, just print what's there
- f.write("")
- while column < len(row):
- f.write("| " + row[column] + " | ")
- column += 1
- else: #if content row
- if row[6] != "":
- f.write("
")
- else:
- f.write("
")
+ with open(version[1]) as bom:
+ csv_reader = csv.reader(bom, delimiter=',')
+ line_count = 0
+
+ for row in csv_reader:
+ column = 0
- while column < len(row):
-
- # handling images
- if column == 1 and row[3] != "FDM":
- f.write(" | ")
- elif column == 1 and row[3] == "FDM":
- f.write(" | ")
-
- # handling links
- elif (column == 4 or column == 5) and row[3] != "FDM" and row[column] != "":
- f.write("Link | ")
- # all other cells
+ if line_count == 0: #if header row, just print what's there
+ f.write("
")
+ while column < len(row):
+ f.write("| " + row[column] + " | ")
+ column += 1
+ else: #if content row
+ if row[6] != "":
+ f.write("
")
else:
- f.write("| " + row[column] + " | ")
- column += 1
- f.write("
")
- line_count += 1
+ f.write("")
-f.write("