Browse Source

fix-2208

tags/v1.22.6.1^2
liuzx 3 years ago
parent
commit
0f1a2e79d4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/dataset.go

+ 2
- 2
routers/repo/dataset.go View File

@@ -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 {


Loading…
Cancel
Save