Browse Source

Merge pull request 'fix-3470' (#3526) from fix-3470 into V20221228

Reviewed-on: https://openi.pcl.ac.cn/OpenI/aiforge/pulls/3526
Reviewed-by: zouap <zouap@pcl.ac.cn>
fix-3534
zouap 2 years ago
parent
commit
07f2eb8fad
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      models/cloudbrain.go
  2. +2
    -1
      routers/api/v1/repo/cloudbrain_dashboard.go

+ 1
- 0
models/cloudbrain.go View File

@@ -30,6 +30,7 @@ const (
TypeCDCenter //成都智算中心

TypeCloudBrainAll = -1
AccCardsNumAll = -1
)

const (


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

@@ -1260,8 +1260,8 @@ func DownloadCloudBrainBoard(ctx *context.Context) {
Type: models.TypeCloudBrainAll,
BeginTimeUnix: int64(recordBeginTime),
EndTimeUnix: endTime.Unix(),
AccCardsNum: models.AccCardsNumAll,
})
log.Info("totalcountisis:", total)

if err != nil {
log.Warn("Can not get cloud brain info", err)
@@ -1290,6 +1290,7 @@ func DownloadCloudBrainBoard(ctx *context.Context) {
BeginTimeUnix: int64(recordBeginTime),
EndTimeUnix: endTime.Unix(),
NeedRepoInfo: true,
AccCardsNum: models.AccCardsNumAll,
})
if err != nil {
log.Warn("Can not get cloud brain info", err)


Loading…
Cancel
Save