Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
25cdd41b1e
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      models/cloudbrain.go
  2. +1
    -1
      templates/repo/modelmanage/index.tmpl

+ 2
- 2
models/cloudbrain.go View File

@@ -1292,7 +1292,7 @@ func Cloudbrains(opts *CloudbrainsOptions) ([]*CloudbrainInfo, int64, error) {
return cloudbrains, count, nil
}

func QueryModelTrainJobVersionList(jobId string) ([]*CloudbrainInfo, int, error) {
func QueryModelTrainJobVersionList(jobId string) ([]*Cloudbrain, int, error) {
sess := x.NewSession()
defer sess.Close()

@@ -1307,7 +1307,7 @@ func QueryModelTrainJobVersionList(jobId string) ([]*CloudbrainInfo, int, error)
)

sess.OrderBy("cloudbrain.created_unix DESC")
cloudbrains := make([]*CloudbrainInfo, 0)
cloudbrains := make([]*Cloudbrain, 0)
if err := sess.Table(&Cloudbrain{}).Where(cond).
Find(&cloudbrains); err != nil {
return nil, 0, fmt.Errorf("Find: %v", err)


+ 1
- 1
templates/repo/modelmanage/index.tmpl View File

@@ -439,7 +439,7 @@
if(trainJob ==null || trainJob ==""){
console.log("trainJob is null");
}else{
$.get(`${repolink}/modelmanage/query_train_model?jobName=${trainJob.jobName}&type=${trainJob.type}`, (data) => {
$.get(`${repolink}/modelmanage/query_train_model?jobName=${trainJob.JobName}&type=${trainJob.Type}`, (data) => {
const n_length = data.length
let file_html=''
let firstFileName =''


Loading…
Cancel
Save