Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
6d38e4ab9f
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      routers/repo/ai_model_manage.go
  2. +2
    -2
      routers/repo/cloudbrain.go

+ 2
- 2
routers/repo/ai_model_manage.go View File

@@ -141,7 +141,7 @@ func SaveNewNameModel(ctx *context.Context) {
return return
} }
SaveModel(ctx) SaveModel(ctx)
ctx.Status(200)
log.Info("save model end.") log.Info("save model end.")
} }


@@ -181,7 +181,7 @@ func SaveModel(ctx *context.Context) {
ctx.Error(500, fmt.Sprintf("save model error. %v", err)) ctx.Error(500, fmt.Sprintf("save model error. %v", err))
return return
} }
ctx.Status(200)
log.Info("save model end.") log.Info("save model end.")
} }




+ 2
- 2
routers/repo/cloudbrain.go View File

@@ -1135,7 +1135,7 @@ func GetModelDirs(jobName string, parentDir string) (string, error) {
} else { } else {
req = "baseDir=" + modelActualPath + "&parentDir=" + parentDir req = "baseDir=" + modelActualPath + "&parentDir=" + parentDir
} }
log.Info("modelActurePath=" + modelActualPath)
return getDirs(req) return getDirs(req)
} }


@@ -1186,7 +1186,7 @@ func downloadCode(repo *models.Repository, codePath, branchName string) error {
log.Error("Failed to clone repository: %s (%v)", repo.FullName(), err) log.Error("Failed to clone repository: %s (%v)", repo.FullName(), err)
return err return err
} }
log.Info("srcPath=" + CLONE_FILE_PREFIX + repo.RepoPath() + " codePath=" + codePath)
configFile, err := os.OpenFile(codePath+"/.git/config", os.O_RDWR, 0666) configFile, err := os.OpenFile(codePath+"/.git/config", os.O_RDWR, 0666)
if err != nil { if err != nil {
log.Error("open file(%s) failed:%v", codePath+"/,git/config", err) log.Error("open file(%s) failed:%v", codePath+"/,git/config", err)


Loading…
Cancel
Save