Browse Source

修改Bug,提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
a2bcbefd38
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/ai_model_convert.go

+ 3
- 0
routers/repo/ai_model_convert.go View File

@@ -550,6 +550,9 @@ func ShowModelConvertInfo(ctx *context.Context) {


job, err := models.QueryModelConvertById(ctx.Query("ID")) job, err := models.QueryModelConvertById(ctx.Query("ID"))
if err == nil { if err == nil {
if job.TrainJobDuration == "" {
job.TrainJobDuration = "00:00:00"
}
ctx.Data["task"] = job ctx.Data["task"] = job
} else { } else {
ctx.ServerError("Not found task.", err) ctx.ServerError("Not found task.", err)


Loading…
Cancel
Save