From 562cd524cec7687f95154c85a0c9fbe8727adb11 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 17 Oct 2022 14:42:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=8B=E8=BD=BD=E6=97=A5=E5=BF=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/api/v1/repo/cloudbrain.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 7640a9f85..bb568eb55 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -496,8 +496,10 @@ func CloudbrainDownloadLogFile(ctx *context.Context) { return } if job.JobType == string(models.JobTypeModelSafety) { - ModelSafetyDownloadLogFile(ctx) - return + if job.Type == models.TypeCloudBrainTwo { + ModelSafetyDownloadLogFile(ctx) + return + } } logDir := "/model"