Commit 9e7618f4 authored by rico.liu's avatar rico.liu

update

parent 9814a1a2
......@@ -550,10 +550,10 @@ def check_params_data(path):
recommend_simplevalue = data_dict[data_dict['primitive'] == recommend_pri]['simplevalue'].tolist()[0]
flag = False
cursor_zi_new.execute(f"insert into ShuJuZiDian_Cfg (categoryname,subtitle,primitive,eg_brand_name,eg_product_name,eg_product_url,recommend_primitive,recommend_stdvalue,recommend_simplevalue) \
values ('{category}','{db_param}','{pri_value}','{eg_brand_name}','{eg_product_name}','{eg_product_url}','{recommend_pri}','{recommend_stdvalue}','{recommend_simplevalue}')")
cursor_zi_new.execute(f"insert into ShuJuZiDian_Cfg (categoryname,subtitle,primitive,eg_brand_name,eg_product_name,recommend_primitive,recommend_stdvalue,recommend_simplevalue) \
values ('{category}','{param}','{value}','{eg_brand_name}','{eg_product_name}','{recommend_pri}','{recommend_stdvalue}','{recommend_simplevalue}')")
cursor_zi_new.execute(f"select id from ShuJuZiDian_Cfg where categoryname = '{category}' and subtitle = '{db_param}' and primitive = '{pri_value}'")
cursor_zi_new.execute(f"select id from ShuJuZiDian_Cfg where categoryname = '{category}' and subtitle = '{param}' and primitive = '{value}'")
dict_id = cursor_zi_new.fetchone()[0]
complicated_data_dict_id_list.append(dict_id)
print(f"完成{category}参数校验")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment