Commit 98a45d5f by 黄静

hj

parent b4993343
...@@ -33,7 +33,7 @@ def industryTwo(industry_one_code): ...@@ -33,7 +33,7 @@ def industryTwo(industry_one_code):
industry_two_dict = {} industry_two_dict = {}
industry_two_dict["id"] = row["industry_two_code"] industry_two_dict["id"] = row["industry_two_code"]
industry_two_dict["name"] = str(row["industry_two"]) industry_two_dict["name"] = str(row["industry_two"])
industry_two_dict["isChoice"] = "false" industry_two_dict["isChoice"] = False
industry_two_list.append(industry_two_dict) industry_two_list.append(industry_two_dict)
return industry_two_list return industry_two_list
......
...@@ -31,7 +31,7 @@ def qualificationsInfo(export_label, store_type_code, industry_one_code,industry ...@@ -31,7 +31,7 @@ def qualificationsInfo(export_label, store_type_code, industry_one_code,industry
base_dict = {} base_dict = {}
base_dict["id"] = row['qualification_comments_code'] base_dict["id"] = row['qualification_comments_code']
base_dict["name"] = row['qualification_comments'] base_dict["name"] = row['qualification_comments']
base_dict['isChoice'] = 'false' base_dict['isChoice'] = False
if base_dict: if base_dict:
base_list.append(base_dict) base_list.append(base_dict)
data_dict['base'] = base_list data_dict['base'] = base_list
...@@ -51,7 +51,7 @@ def qualificationsInfo(export_label, store_type_code, industry_one_code,industry ...@@ -51,7 +51,7 @@ def qualificationsInfo(export_label, store_type_code, industry_one_code,industry
industry_dict = {} industry_dict = {}
industry_dict["id"] = row['qualification_comments_code'] industry_dict["id"] = row['qualification_comments_code']
industry_dict["name"] = row['qualification_comments'] industry_dict["name"] = row['qualification_comments']
industry_dict['isChoice'] = 'false' industry_dict['isChoice'] = False
if industry_dict: if industry_dict:
industry_list.append(industry_dict) industry_list.append(industry_dict)
data_dict['industry'] = industry_list data_dict['industry'] = industry_list
...@@ -71,7 +71,7 @@ def qualificationsRoute(server): ...@@ -71,7 +71,7 @@ def qualificationsRoute(server):
if request.method == 'POST': if request.method == 'POST':
request_data = request.json request_data = request.json
isImports = request_data['isImports'] isImports = request_data['isImports']
if isImports == 'false': if isImports == False:
export_label = '0' export_label = '0'
else: else:
export_label = '1' export_label = '1'
......
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