|
|
@@ -341,6 +341,7 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool) |
|
|
|
for i, uuidStr := range uuidList { |
|
|
|
name := "" |
|
|
|
link := "" |
|
|
|
url := "" |
|
|
|
isDelete := false |
|
|
|
attachment, err := models.GetAttachmentByUUID(uuidStr) |
|
|
|
if err != nil { |
|
|
@@ -360,11 +361,11 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool) |
|
|
|
link = repo.Link() + "/datasets" |
|
|
|
} |
|
|
|
} |
|
|
|
if isNeedDown { |
|
|
|
url = attachment.S3DownloadURL() |
|
|
|
} |
|
|
|
} |
|
|
|
url := "" |
|
|
|
if isNeedDown { |
|
|
|
url = attachment.S3DownloadURL() |
|
|
|
} |
|
|
|
|
|
|
|
datasetDownload = append(datasetDownload, models.DatasetDownload{ |
|
|
|
DatasetName: name, |
|
|
|
DatasetDownloadLink: url, |
|
|
|