From f4ab9207ba4d8d64f1414eed2a31f3acd9712c3e Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Tue, 28 Dec 2021 11:09:05 +0800 Subject: [PATCH 1/4] return debug list --- routers/repo/modelarts.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index 31b0b196b..801c4a753 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -49,12 +49,9 @@ func DebugJobIndex(ctx *context.Context) { page = 1 } debugType := modelarts.DebugType - jobType := string(models.JobTypeDebug) if debugListType == models.GPUResource { debugType = models.TypeCloudBrainOne - jobType = "" - } - if debugListType == models.NPUResource { + } else if debugListType == models.NPUResource { debugType = models.TypeCloudBrainTwo } @@ -65,7 +62,6 @@ func DebugJobIndex(ctx *context.Context) { }, RepoID: repo.ID, Type: debugType, - JobType: jobType, }) if err != nil { ctx.ServerError("Get debugjob faild:", err) From bbcbf0ccda140390ea5168a438c17ec6bff3daa5 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 28 Dec 2021 11:23:51 +0800 Subject: [PATCH 2/4] fix issue --- templates/repo/debugjob/index.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index f38b915a4..5acc8e2ec 100755 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -402,6 +402,13 @@ {{$.i18n.Tr "repo.download"}} {{end}} +
+ {{if and (ne .Status "WAITING") (ne .JobType "DEBUG") }} + + 评分 + + {{end}} +
From 3d0afdc432d9f57e3e350110a60e934f3e1aab5b Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 28 Dec 2021 11:38:46 +0800 Subject: [PATCH 3/4] fix issue --- templates/repo/debugjob/index.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index 5acc8e2ec..7799c48d2 100755 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -403,8 +403,8 @@ {{end}}
- {{if and (ne .Status "WAITING") (ne .JobType "DEBUG") }} - + {{if and (ne .Status "WAITING") (ne .JobType "DEBUG") (eq .Cloudbrain.Type 0)}} + 评分 {{end}} @@ -488,6 +488,7 @@