From 7623fcdca9dbd38b4e938757a7121e583d62541c Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 7 Apr 2022 11:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/modelarts.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index f003407c2..4b7582d4b 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -284,6 +284,10 @@ func NotebookShow(ctx *context.Context) { } } } + user, err := models.GetUserByID(task.UserID) + if err == nil { + task.User = user + } if modelarts.FlavorInfos == nil { json.Unmarshal([]byte(setting.FlavorInfos), &modelarts.FlavorInfos) }