fix:log error(#11942) (#11943)

This commit is contained in:
呆萌闷油瓶 2024-12-21 21:24:33 +08:00 committed by GitHub
parent a227af3664
commit e22cc28114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
}