Browse Source

Merge pull request 'fix-3074' (#3075) from fix-2982 into V20221102

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/3075
Reviewed-by: lewis <747342561@qq.com>
tags/v1.22.11.1^2
lewis 3 years ago
parent
commit
bfcd3f6712
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,
NeedAttachment: false,
CloudBrainType: models.TypeCloudBrainAll,
SearchOrderBy: models.SearchOrderByDefault,
}
dataset, _ := models.GetDatasetByRepo(&models.Repository{ID: ctx.Repo.Repository.ID})
if dataset != nil {
@@ -538,6 +539,7 @@ func PublicDatasetMultiple(ctx *context.Context) {
PublicOnly: true,
NeedAttachment: true,
CloudBrainType: ctx.QueryInt("type"),
SearchOrderBy: models.SearchOrderByDefault,
}
datasetMultiple(ctx, opts)



Loading…
Cancel
Save