From 1456d33aa1c386e768a4a05bfae609258e96120a Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 23 Nov 2021 17:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E8=AE=AD?= =?UTF-8?q?=E7=BB=83=E4=BB=BB=E5=8A=A1=E7=9A=84=E6=8E=A5=E5=8F=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_manage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 21a56288c..b118175c7 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -259,7 +259,7 @@ func DownloadMultiModelFile(ctx *context.Context) { func QueryTrainJobList(ctx *context.Context) { log.Info("query train job list. start.") - repoId := ctx.Query("repoId") + repoId := ctx.QueryInt64("repoId") VersionListTasks, VersionListCount, err := models.CloudbrainsVersionList(&models.CloudbrainsOptions{ ListOptions: models.ListOptions{ @@ -272,7 +272,7 @@ func QueryTrainJobList(ctx *context.Context) { JobID: "", }) - ctx.Json(200, VersionListTasks) + ctx.JSON(200, VersionListTasks) } func DownloadSingleModelFile(ctx *context.Context) {