Browse Source

#1249

Fixed the display problem of cloudbrain specifications
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
926df6a63d
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      models/cloudbrain_static.go
  2. +1
    -0
      routers/api/v1/repo/cloudbrain_dashboard.go

+ 1
- 0
models/cloudbrain_static.go View File

@@ -34,6 +34,7 @@ type TaskDetail struct {
CardDuration string `json:"CardDuration"`
AiCenter string `json:"AiCenter"`
FlavorName string `json:"FlavorName"`
Spec *Specification `json:"Spec"`
}

func GetTodayCreatorCount(beginTime time.Time, endTime time.Time) (int64, error) {


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

@@ -770,6 +770,7 @@ func GetCloudbrainsDetailData(ctx *context.Context) {
} else {
taskDetail.IsDelete = false
}
taskDetail.Spec = ciTasks[i].Spec
tasks = append(tasks, taskDetail)
}



Loading…
Cancel
Save