This commit is contained in:
王思川 2022-12-30 15:14:56 +08:00
parent e4f319cf4f
commit be444a7f6b
1 changed files with 5 additions and 5 deletions

View File

@ -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]})
continue
# 检查指标仓库是否存在该指标
index_info = request_to_get(
url="http://test.fecribd.com/api/index_store/view_by_ename/{}".format(index.get("指标"))
)
if not index_info:
raise HTTPException(status_code=202, detail="Index: 【{}】 Not Found In IndexStore".format(index.get("中文")))
# index_info = request_to_get(
# url="http://test.fecribd.com/api/index_store/view_by_ename/{}".format(index.get("指标"))
# )
# if not index_info:
# raise HTTPException(status_code=202, detail="Index: 【{}】 Not Found In IndexStore".format(index.get("中文")))
# 请求指标计算接口
index_value = request_to_post(
url="http://test.fecribd.com/api/index_function/{}".format(index.get("指标")),