Commit 0d136fdf authored by rico.liu's avatar rico.liu

update

parent 6f93a122
...@@ -139,13 +139,21 @@ def upload_params_data(category,path): ...@@ -139,13 +139,21 @@ def upload_params_data(category,path):
process_index = 0 process_index = 0
index_ = Index() index_ = Index()
#SPU、SKU命名 #SPU、SKU命名
#temp_index_list = []
#temp_index_list = [i for i in range(8843)]
for index,row in df.iterrows(): for index,row in df.iterrows():
try: try:
print(index_(process_index,len(df)-1), end='%') print(index_(process_index,len(df)-1), end='%')
except: except:
print(index_(process_index,1), end='%') print(index_(process_index,1), end='%')
process_index+=1 process_index+=1
if index in temp_index_list:
continue
else:
temp_index_list.append(index)
sku = row['产品编码'] sku = row['产品编码']
brandname = row['产品品牌'] brandname = row['产品品牌']
cursor_zi_new.execute(f"select id from p_brand where name = '{brandname}' and id not in (select distinct pid from p_brand)") cursor_zi_new.execute(f"select id from p_brand where name = '{brandname}' and id not in (select distinct pid from p_brand)")
......
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