From 39babad7ec1311965d235109765ce4a5dc2a9073 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Fri, 15 Jul 2022 17:55:26 +0800 Subject: [PATCH 1/2] fix issue --- templates/repo/debugjob/index.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index 37961cf36..14a74ef31 100755 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -405,7 +405,7 @@ {{$.CsrfTokenHtml}} {{if .CanDel}} {{$.i18n.Tr "repo.delete"}} From 486897bc8be4af6de4cabfff883feb23c02b49aa Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Fri, 15 Jul 2022 17:58:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/cloudbrain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/cloudbrain.go b/models/cloudbrain.go index 2f3156c98..f40403fdd 100755 --- a/models/cloudbrain.go +++ b/models/cloudbrain.go @@ -1802,7 +1802,7 @@ func GetBenchmarkCountByUserID(userID int64) (int, error) { func GetWaitingCloudbrainCount(cloudbrainType int, computeResource string, jobTypes ...JobType) (int64, error) { sess := x.Where("status=? and type=?", JobWaiting, cloudbrainType) - if len(jobTypes) >= 0 { + if len(jobTypes) > 0 { sess.In("JobType", jobTypes) } if computeResource != "" {