From d3c0d1956e5d50e0b21e810691397ae0ac3c9492 Mon Sep 17 00:00:00 2001 From: leslie2046 <253605712@qq.com> Date: Mon, 8 Apr 2024 19:48:44 +0800 Subject: [PATCH 1/3] add ignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c957d631743cab..9fd515790a5fed 100644 --- a/.gitignore +++ b/.gitignore @@ -156,3 +156,5 @@ sdks/python-client/dify_client.egg-info .vscode/* !.vscode/launch.json pyrightconfig.json +nohup.out +docker/volumes*/* From 9eed0481ead6aac2fc70588e64f27decff250e0d Mon Sep 17 00:00:00 2001 From: leslie2046 <253605712@qq.com> Date: Tue, 9 Apr 2024 08:54:00 +0800 Subject: [PATCH 2/3] modify ignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9fd515790a5fed..c957d631743cab 100644 --- a/.gitignore +++ b/.gitignore @@ -156,5 +156,3 @@ sdks/python-client/dify_client.egg-info .vscode/* !.vscode/launch.json pyrightconfig.json -nohup.out -docker/volumes*/* From 4ae034cb4d8312228995e3bb58cb96655edc64e3 Mon Sep 17 00:00:00 2001 From: leslie2046 <253605712@qq.com> Date: Sat, 21 Dec 2024 19:34:01 +0800 Subject: [PATCH 3/3] fix log error --- api/models/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/models/model.py b/api/models/model.py index 8608b12af1fc8e..d3c69cfbe1278e 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -700,8 +700,10 @@ def admin_feedback_stats(self): 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, }