Commit 39ed01e0 authored by rico.liu's avatar rico.liu

update

parent 60dd1d66
......@@ -619,6 +619,11 @@ def save_collect_data_info(path,std_value_dict):
cursor_zi_new.execute(f"select category_name from important_category")
point_category_list = pd.DataFrame(cursor_zi_new.fetchall(), columns=[tuple[0] for tuple in cursor_zi_new.description])['category_name'].tolist()
cursor_zi_new.execute("select * from vw_property")
db_params = pd.DataFrame(cursor_zi_new.fetchall(), columns=[tuple[0] for tuple in cursor_zi_new.description])
db_params['standard_param'] = db_params['identy'].apply(lambda x: x[2])
db_params = db_params[db_params['standard_param'] != '0']
db_params['subtitle'] = db_params['subtitle'].apply(lambda x: x.strip())
#实例化进度条
index_ = ProgressLine()
......@@ -647,7 +652,7 @@ def save_collect_data_info(path,std_value_dict):
for index,row in necessary_single_df.iterrows():
id_ = int(id_)
params = row['param']
if params in cat_subtitle_list:
if params == 'CPU型号':
subtitle_list.append(params)
......@@ -665,6 +670,8 @@ def save_collect_data_info(path,std_value_dict):
subtitle_list.append(params)
value_list.append(list(std_value_dict[id_][params].keys())[0])
else:
continue
params_dict = str(dict(zip(subtitle_list + unnecessary_single_df['param'].tolist(),value_list + unnecessary_single_df['value'].tolist()))).replace("'","''")
......
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