Browse Source

Merge branch 'V20221228' into zpz-issue-1228

pull/3528/head
zhoupzh 2 years ago
parent
commit
df11043a04
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