fix: bot/actions去除不存在的target_value字段(导致500)
This commit is contained in:
@@ -30,9 +30,10 @@ def _load_bot_keys():
|
||||
raw = os.getenv("CMA_BOT_API_KEYS", "")
|
||||
if not raw:
|
||||
_BOT_API_KEYS = {
|
||||
"cma-bot-finance-2026": {"role": "finance", "name": "财务BOT"},
|
||||
"cma-bot-shop-2026": {"role": "business", "name": "店研学BOT"},
|
||||
"cma-bot-admin-2026": {"role": "ceo", "name": "管理BOT"},
|
||||
"cma-bot-finance-2026": {"role": "finance", "name": "财务分析Bot", "dimension": "finance"},
|
||||
"cma-bot-customer-2026": {"role": "business", "name": "客户分析Bot", "dimension": "customer"},
|
||||
"cma-bot-process-2026": {"role": "it", "name": "流程分析Bot", "dimension": "process"},
|
||||
"cma-bot-learning-2026": {"role": "ceo", "name": "战略分析Bot", "dimension": "learning"},
|
||||
}
|
||||
else:
|
||||
try:
|
||||
@@ -321,7 +322,6 @@ def bot_actions(
|
||||
"description": p.description, "kpi_id": p.kpi_id,
|
||||
"assignee": p.assignee, "priority": p.priority,
|
||||
"status": p.status, "progress": p.progress,
|
||||
"target_value": p.target_value,
|
||||
"due_date": _safe_iso(p.due_date),
|
||||
"created_at": _safe_iso(p.created_at),
|
||||
} for p in plans
|
||||
|
||||
Reference in New Issue
Block a user