Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
486897bc8b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/cloudbrain.go

+ 1
- 1
models/cloudbrain.go View File

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


Loading…
Cancel
Save