Browse Source

Merge branch 'V20221102' into fix-csh

tags/v1.22.11.1^2
chenshihai 3 years ago
parent
commit
049f5c125e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/dataset.go

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

@@ -523,6 +523,7 @@ func ReferenceDatasetAvailable(ctx *context.Context) {
PublicOnly: true, PublicOnly: true,
NeedAttachment: false, NeedAttachment: false,
CloudBrainType: models.TypeCloudBrainAll, CloudBrainType: models.TypeCloudBrainAll,
SearchOrderBy: models.SearchOrderByDefault,
} }
dataset, _ := models.GetDatasetByRepo(&models.Repository{ID: ctx.Repo.Repository.ID}) dataset, _ := models.GetDatasetByRepo(&models.Repository{ID: ctx.Repo.Repository.ID})
if dataset != nil { if dataset != nil {
@@ -538,6 +539,7 @@ func PublicDatasetMultiple(ctx *context.Context) {
PublicOnly: true, PublicOnly: true,
NeedAttachment: true, NeedAttachment: true,
CloudBrainType: ctx.QueryInt("type"), CloudBrainType: ctx.QueryInt("type"),
SearchOrderBy: models.SearchOrderByDefault,
} }
datasetMultiple(ctx, opts) datasetMultiple(ctx, opts)




Loading…
Cancel
Save