fetch google sheet

main
alex 2024-05-25 10:14:31 +02:00
parent 63eeb4e607
commit 48beaf1c42
1 changed files with 0 additions and 22 deletions

View File

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