Browse Source

提交代码

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

+ 1
- 1
models/cloudbrain.go View File

@@ -1803,7 +1803,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 {
sess.In("JobType", jobTypes)
sess.In("job_type", jobTypes)
}
if computeResource != "" {
sess.And("compute_resource=?", computeResource)


Loading…
Cancel
Save