Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
f8917f24e4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/api/v1/repo/cloudbrain.go

+ 2
- 2
routers/api/v1/repo/cloudbrain.go View File

@@ -268,8 +268,8 @@ func CloudBrainModelConvertList(ctx *context.APIContext) {

for i, fileInfo := range fileInfos {
temp, _ := time.Parse("2006-01-02 15:04:05", fileInfo.ModTime)
if !fileInfo.IsDir && fileInfo.FileName == fileInfo.ParenDir {
fileInfo.ParenDir = ""
if fileInfos[i].FileName == fileInfos[i].ParenDir {
fileInfos[i].ParenDir = ""
}
fileInfos[i].ModTime = temp.Local().Format("2006-01-02 15:04:05")
}


Loading…
Cancel
Save