fetch google sheet
parent
48beaf1c42
commit
81d27587b7
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue