fetch google sheet
parent
63eeb4e607
commit
48beaf1c42
|
@ -100,28 +100,6 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
"""
|
|
||||||
if p_type_id not in product_type_ids:
|
|
||||||
print("Product type not found")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
print(f"Creating product label for product type #{p_type_id}")
|
|
||||||
|
|
||||||
product = product_type_ids[p_type_id]
|
|
||||||
|
|
||||||
with open("index.js", "r") as file:
|
|
||||||
indexjs = file.read()
|
|
||||||
|
|
||||||
indexjs = indexjs.replace("{{PRODUCT_ID}}", product["product_id"])
|
|
||||||
indexjs = indexjs.replace("{{PRODUCT_NAME}}", product["product_name"])
|
|
||||||
indexjs = indexjs.replace("{{PRODUCT_VARIANT}}", product["product_variant"])
|
|
||||||
indexjs = indexjs.replace("{{PRODUCT_COLOR_CHARACTERISTICS}}", product["product_color_characteristics"])
|
|
||||||
indexjs = indexjs.replace("{{LABEL_PAPER_POSITION}}", label_paper_position)
|
|
||||||
|
|
||||||
with open("index.js", "w") as file:
|
|
||||||
file.write(indexjs)
|
|
||||||
"""
|
|
||||||
|
|
||||||
# create front page
|
# create front page
|
||||||
|
|
||||||
createPdf("index.html", "Produktschilder.pdf")
|
createPdf("index.html", "Produktschilder.pdf")
|
||||||
|
|
Loading…
Reference in New Issue