Browse Source

Merge pull request 'fix-2334' (#2346) from fix-2285 into V20220630

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2346
Reviewed-by: lewis <747342561@qq.com>
tags/v1.22.6.2^2
lewis 3 years ago
parent
commit
ada639b633
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/dataset.go

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

@@ -172,8 +172,8 @@ func DatasetIndex(ctx *context.Context) {
for _, attachment := range pageAttachments {
uploader, _ := models.GetUserByID(attachment.UploaderID)
attachment.Uploader = uploader
if !strings.HasSuffix(attachment.Name, ".zip") {
attachment.DecompressState = -1 //非zip文件
if !strings.HasSuffix(attachment.Name, ".zip") && !strings.HasSuffix(attachment.Name, ".tar.gz") {
attachment.DecompressState = -1 //非压缩文件
}

}


Loading…
Cancel
Save