From bd2a1a9cf263b85e034e587d7d454887add6680f Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Wed, 30 Nov 2022 10:07:00 +0800 Subject: [PATCH] changes --- AppIndicators/Router.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AppIndicators/Router.py b/AppIndicators/Router.py index 53af8d8..4735f70 100644 --- a/AppIndicators/Router.py +++ b/AppIndicators/Router.py @@ -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)