Chore/code format and Repair commit_id 3254018d more deleted codes and Fix naming error ambiguity between workflow_run_id and workflow_id (#17075)

Co-authored-by: 刘江波 <jiangbo721@163.com>
This commit is contained in:
jiangbo721
2025-03-29 14:15:53 +08:00
committed by GitHub
parent 34cba83ac4
commit a1aa325ce3
9 changed files with 22 additions and 21 deletions

View File

@@ -791,7 +791,7 @@ class Conversation(db.Model): # type: ignore[name-defined]
WorkflowRunStatus.SUCCEEDED: 0,
WorkflowRunStatus.FAILED: 0,
WorkflowRunStatus.STOPPED: 0,
WorkflowRunStatus.PARTIAL_SUCCESSED: 0,
WorkflowRunStatus.PARTIAL_SUCCEEDED: 0,
}
for message in messages:
@@ -802,7 +802,7 @@ class Conversation(db.Model): # type: ignore[name-defined]
{
"success": status_counts[WorkflowRunStatus.SUCCEEDED],
"failed": status_counts[WorkflowRunStatus.FAILED],
"partial_success": status_counts[WorkflowRunStatus.PARTIAL_SUCCESSED],
"partial_success": status_counts[WorkflowRunStatus.PARTIAL_SUCCEEDED],
}
if messages
else None