From 486897bc8be4af6de4cabfff883feb23c02b49aa Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Fri, 15 Jul 2022 17:58:54 +0800 Subject: [PATCH] =?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 != "" {