Browse Source

Merge pull request '解决 #2827' (#2829) from zouap_static into V20220830

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2829
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
tags/v1.22.8.2^2
ychao_1983 3 years ago
parent
commit
d6114906b9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/repo/modelarts.go

+ 2
- 1
routers/repo/modelarts.go View File

@@ -346,7 +346,7 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool)
attachment, err := models.GetAttachmentByUUID(uuidStr)
if err != nil {
log.Error("GetAttachmentByUUID failed:%v", err.Error())
if len(datasetnameList) <= i {
if len(datasetnameList) <= i || len(datasetname) == 0 {
continue
}
name = datasetnameList[i]
@@ -376,6 +376,7 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool)
IsDelete: isDelete,
})
}
log.Info("dataset length=" + fmt.Sprint(len(datasetDownload)))
return datasetDownload
}



Loading…
Cancel
Save