Browse Source

Merge branch 'fix-1591' of https://git.openi.org.cn/OpenI/aiforge into fix-1591

pull/1693/head
Gitea 3 years ago
parent
commit
484ff109b2
2 changed files with 2 additions and 4 deletions
  1. +2
    -2
      models/attachment.go
  2. +0
    -2
      routers/repo/dataset.go

+ 2
- 2
models/attachment.go View File

@@ -571,8 +571,8 @@ func Attachments(opts *AttachmentsOptions) ([]*AttachmentInfo, int64, error) {
}

if opts.JustNeedZipFile {
var DecompressState []int
DecompressState = append(DecompressState, 1, 2, 3)
var DecompressState []int32
DecompressState = append(DecompressState, DecompressStateDone, DecompressStateIng, DecompressStateFailed)
cond = cond.And(
builder.In("attachment.decompress_state", DecompressState),
)


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

@@ -308,7 +308,6 @@ func CurrentRepoDataset(ctx *context.Context) {
return
}
datasetIDs = append(datasetIDs, dataset.ID)
uploaderID := ctx.User.ID
datasets, count, err := models.Attachments(&models.AttachmentsOptions{
ListOptions: models.ListOptions{
Page: page,
@@ -317,7 +316,6 @@ func CurrentRepoDataset(ctx *context.Context) {
Keyword: keyword,
NeedDatasetIDs: true,
DatasetIDs: datasetIDs,
UploaderID: uploaderID,
Type: cloudbrainType,
NeedIsPrivate: false,
JustNeedZipFile: true,


Loading…
Cancel
Save