changes
This commit is contained in:
parent
e4f319cf4f
commit
be444a7f6b
|
@ -440,11 +440,11 @@ def func(rating_flow_id: str, db: Session = Depends(get_db), mongodb: MongoHelpe
|
||||||
index_values.update({index.get("指标"): list(params_dict.values())[0]})
|
index_values.update({index.get("指标"): list(params_dict.values())[0]})
|
||||||
continue
|
continue
|
||||||
# 检查指标仓库是否存在该指标
|
# 检查指标仓库是否存在该指标
|
||||||
index_info = request_to_get(
|
# index_info = request_to_get(
|
||||||
url="http://test.fecribd.com/api/index_store/view_by_ename/{}".format(index.get("指标"))
|
# url="http://test.fecribd.com/api/index_store/view_by_ename/{}".format(index.get("指标"))
|
||||||
)
|
# )
|
||||||
if not index_info:
|
# if not index_info:
|
||||||
raise HTTPException(status_code=202, detail="Index: 【{}】 Not Found In IndexStore".format(index.get("中文")))
|
# raise HTTPException(status_code=202, detail="Index: 【{}】 Not Found In IndexStore".format(index.get("中文")))
|
||||||
# 请求指标计算接口
|
# 请求指标计算接口
|
||||||
index_value = request_to_post(
|
index_value = request_to_post(
|
||||||
url="http://test.fecribd.com/api/index_function/{}".format(index.get("指标")),
|
url="http://test.fecribd.com/api/index_function/{}".format(index.get("指标")),
|
||||||
|
|
Loading…
Reference in New Issue