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 != "" { 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"}}