From 0f1a2e79d4d81688440239983f6e6daf61d597de Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 16 Jun 2022 11:04:27 +0800 Subject: [PATCH] fix-2208 --- routers/repo/dataset.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/dataset.go b/routers/repo/dataset.go index e4272c053..6a0253bb2 100755 --- a/routers/repo/dataset.go +++ b/routers/repo/dataset.go @@ -522,7 +522,6 @@ func MyFavoriteDataset(ctx *context.Context) { } datasets := IsColDatasets count := NotColcount + IsColcount - //排序 sort.Slice(datasets, func(i, j int) bool { return datasets[i].Attachment.CreatedUnix > datasets[j].Attachment.CreatedUnix }) @@ -613,7 +612,8 @@ func GetDatasetStatus(ctx *context.Context) { func DatasetIsCollaborator(ctx *context.Context, DatasetID int64) bool { dataset, err := models.GetDatasetByID(DatasetID) if err != nil { - log.Info("query dataset error") + log.Info("query dataset error:", DatasetID) + return false } else { repo, err := models.GetRepositoryByID(dataset.RepoID) if err != nil {