fix: bot/kpis 500 — KPIDefinition无description字段改为formula_desc(存量bug,账套模式验证门禁4发现)
This commit is contained in:
@@ -134,7 +134,7 @@ def bot_kpis(
|
|||||||
"threshold_yellow": k.threshold_yellow,
|
"threshold_yellow": k.threshold_yellow,
|
||||||
"threshold_red": k.threshold_red,
|
"threshold_red": k.threshold_red,
|
||||||
"responsible_dept": k.responsible_dept, "owner": k.responsible_user,
|
"responsible_dept": k.responsible_dept, "owner": k.responsible_user,
|
||||||
"objective": k.objective, "description": k.description,
|
"objective": k.objective, "formula_desc": k.formula_desc,
|
||||||
"latest_value": _float(latest.actual_value) if latest else None,
|
"latest_value": _float(latest.actual_value) if latest else None,
|
||||||
"latest_period": latest.period if latest else None,
|
"latest_period": latest.period if latest else None,
|
||||||
"status": k.status,
|
"status": k.status,
|
||||||
|
|||||||
Reference in New Issue
Block a user