|
|
@@ -10,6 +10,7 @@ import ( |
|
|
|
"os" |
|
|
|
"os/exec" |
|
|
|
"regexp" |
|
|
|
"sort" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
@@ -533,6 +534,10 @@ func CloudBrainShowModels(ctx *context.Context) { |
|
|
|
fileInfos[i].ModTime = temp.Local().Format("2006-01-02 15:04:05") |
|
|
|
} |
|
|
|
|
|
|
|
sort.Slice(fileInfos, func(i, j int) bool { |
|
|
|
return fileInfos[i].ModTime > fileInfos[j].ModTime |
|
|
|
}) |
|
|
|
|
|
|
|
ctx.Data["Path"] = dirArray |
|
|
|
ctx.Data["Dirs"] = fileInfos |
|
|
|
ctx.Data["task"] = task |
|
|
|