|
|
@@ -192,11 +192,12 @@ func DownloadSingleModelFile(ctx *context.Context) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func ShowSingleModel(ctx *context.Context) { |
|
|
func ShowSingleModel(ctx *context.Context) { |
|
|
|
|
|
|
|
|
|
|
|
id := ctx.Params(":ID") |
|
|
log.Info("Show single ModelInfo start.") |
|
|
log.Info("Show single ModelInfo start.") |
|
|
id := ctx.Query("ID") |
|
|
|
|
|
task, err := models.QueryModelById(id) |
|
|
task, err := models.QueryModelById(id) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Error("no such model!", ctx.Data["msgID"]) |
|
|
|
|
|
|
|
|
log.Error("no such model!", err.Error()) |
|
|
ctx.ServerError("no such model:", err) |
|
|
ctx.ServerError("no such model:", err) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|