From 91b21891cfc77784ae1d505b24c8387d25d52467 Mon Sep 17 00:00:00 2001 From: liuzx Date: Wed, 9 Nov 2022 11:05:00 +0800 Subject: [PATCH] fix-3173 --- models/cloudbrain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/cloudbrain.go b/models/cloudbrain.go index a9182b7b8..d53da511b 100755 --- a/models/cloudbrain.go +++ b/models/cloudbrain.go @@ -2034,13 +2034,13 @@ func GetC2NetWithAiCenterWrongJob() ([]*Cloudbrain, error) { cloudbrains := make([]*Cloudbrain, 0) return cloudbrains, x. In("status", ModelArtsTrainJobFailed, ModelArtsTrainJobKilled, ModelArtsStopped, JobStopped, JobFailed). - Where("type = 2 "). + Where("type = ?", TypeC2Net). Find(&cloudbrains) } func GetModelSafetyTestTask() ([]*Cloudbrain, error) { cloudbrains := make([]*Cloudbrain, 0) - sess := x.Where("job_type = ?", string(JobTypeModelSafety)) + sess := x.Where("job_type=?", string(JobTypeModelSafety)) err := sess.Find(&cloudbrains) return cloudbrains, err }