Browse Source

Merge pull request '提交代码,字段名称不对' (#2511) from gpu-inference into V20220718

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2511
Reviewed-by: lewis <747342561@qq.com>
tags/v1.22.7.1
lewis 3 years ago
parent
commit
e6da72d013
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