From e22cc2811462de33757e688c3e93ec042e897909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E8=90=8C=E9=97=B7=E6=B2=B9=E7=93=B6?= <253605712@qq.com> Date: Sat, 21 Dec 2024 21:24:33 +0800 Subject: [PATCH] fix:log error(#11942) (#11943) --- api/models/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/models/model.py b/api/models/model.py index 8608b12af1..d3c69cfbe1 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -700,8 +700,10 @@ class Conversation(db.Model): def status_count(self): messages = db.session.query(Message).filter(Message.conversation_id == self.id).all() status_counts = { + WorkflowRunStatus.RUNNING: 0, WorkflowRunStatus.SUCCEEDED: 0, WorkflowRunStatus.FAILED: 0, + WorkflowRunStatus.STOPPED: 0, WorkflowRunStatus.PARTIAL_SUCCESSED: 0, }