Browse Source

#1852

update
tags/v1.22.4.1^2
chenyifan01 4 years ago
parent
commit
a5c7f942ed
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      models/cloudbrain.go

+ 1
- 4
models/cloudbrain.go View File

@@ -1353,11 +1353,8 @@ func CloudbrainsVersionList(opts *CloudbrainsOptions) ([]*CloudbrainInfo, int, e
}

func CreateCloudbrain(cloudbrain *Cloudbrain) (err error) {
sess := x.NewSession()
defer sess.Close()

cloudbrain.TrainJobDuration = DURATION_STR_ZERO
if _, err = sess.NoAutoTime().Insert(cloudbrain); err != nil {
if _, err = x.NoAutoTime().Insert(cloudbrain); err != nil {
return err
}
return nil


Loading…
Cancel
Save