|
|
|
@@ -1010,20 +1010,12 @@ func TrainJobShow(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Data["jobID"] = jobID |
|
|
|
ctx.Data["jobName"] = VersionListTasks[0].JobName |
|
|
|
ctx.Data["version_list_task"] = VersionListTasks |
|
|
|
ctx.Data["version_list_count"] = VersionListCount |
|
|
|
ctx.HTML(http.StatusOK, tplModelArtsTrainJobShow) |
|
|
|
} |
|
|
|
|
|
|
|
// func addZero(t int64) (m string) { |
|
|
|
// if t < 10 { |
|
|
|
// m = "0" + strconv.FormatInt(t, 10) |
|
|
|
// return m |
|
|
|
// } else { |
|
|
|
// return strconv.FormatInt(t, 10) |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
func TrainJobGetLog(ctx *context.Context) { |
|
|
|
ctx.Data["PageIsTrainJob"] = true |
|
|
|
|
|
|
|
|