fetch google sheet

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

View File

@ -18,28 +18,6 @@ if product_type_id is None or label_paper_position is None:
product_type_id = product_type_id["value"] product_type_id = product_type_id["value"]
label_paper_position = label_paper_position["value"] label_paper_position = label_paper_position["value"]
"""
product_type_ids = {}
def add_product_type_id(product_type_id, product_name, product_variant, product_color_characteristics):
product_type_ids[product_type_id] = {
"product_id": f"#{product_type_id}",
"product_name": product_name,
"product_variant": product_variant,
"product_color_characteristics": product_color_characteristics
}
with open("../../groups/shx-product-label/index.json", "r") as file:
content = json.load(file)
products = content["tasks"][0]["parameters"][1]["options"]
for product in products:
data = product.split("; ")
# remove the # on the start
add_product_type_id(data[0][1:], data[1], data[2] + " " + data[3], data[4]) """
def createPdf(sourceHtml, outputPdf): def createPdf(sourceHtml, outputPdf):
command = [ command = [
"google-chrome-stable", "google-chrome-stable",