|
|
@@ -70,7 +70,7 @@ func CloudBrains(ctx *context.Context) { |
|
|
|
|
|
|
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
|
|
|
|
|
|
ciTasks, totalcount, err := models.Cloudbrains(&models.CloudbrainsOptions{ |
|
|
|
|
|
|
|
|
ciTasks, _, err := models.Cloudbrains(&models.CloudbrainsOptions{ |
|
|
ListOptions: models.ListOptions{ |
|
|
ListOptions: models.ListOptions{ |
|
|
Page: page, |
|
|
Page: page, |
|
|
PageSize: setting.UI.IssuePagingNum, |
|
|
PageSize: setting.UI.IssuePagingNum, |
|
|
@@ -93,7 +93,6 @@ func CloudBrains(ctx *context.Context) { |
|
|
|
|
|
|
|
|
models.LoadSpecs4CloudbrainInfo(ciTasks) |
|
|
models.LoadSpecs4CloudbrainInfo(ciTasks) |
|
|
tasks := []*models.CloudbrainInfo{} |
|
|
tasks := []*models.CloudbrainInfo{} |
|
|
log.Info("totalcount:", totalcount) |
|
|
|
|
|
|
|
|
|
|
|
for _, task := range ciTasks { |
|
|
for _, task := range ciTasks { |
|
|
if aiCenter == "" || aiCenter == task.Cloudbrain.Spec.AiCenterCode { |
|
|
if aiCenter == "" || aiCenter == task.Cloudbrain.Spec.AiCenterCode { |
|
|
|