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