This commit is contained in:
P3ngSaM 2022-11-30 10:07:00 +08:00
parent 77304e2e80
commit bd2a1a9cf2
1 changed files with 5 additions and 2 deletions

View File

@ -148,8 +148,11 @@ def func(iid_list: list, db: Session = Depends(get_db)):
for param in params:
param_dict = dict()
param_dict['参数'] = param.ename
data = param.path.split("-")
param_dict['加载路径'] = data
path = param.path
if path:
param_dict['加载路径'] = param.path.split("-")
else:
param_dict['加载路径'] = None
index['指标参数'].append(param_dict)
result['指标及权重'].append(index)