Browse Source

Merge pull request 'show-ai-center-info' (#2475) from show-ai-center-info into V20220718

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2475
fix-2452
lewis 2 years ago
parent
commit
d09bb88808
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/api/v1/repo/cloudbrain.go

+ 3
- 1
routers/api/v1/repo/cloudbrain.go View File

@@ -229,7 +229,9 @@ func GetNewestJobs(ctx *context.APIContext) {


ids := make([]int64, len(idsC2Net), cap(idsC2Net)*2) ids := make([]int64, len(idsC2Net), cap(idsC2Net)*2)
copy(ids, idsC2Net) copy(ids, idsC2Net)
copy(ids, idsCloudbrain)
for _, id := range idsCloudbrain {
ids = append(ids, id)
}


jobs, err := models.GetCloudbrainByIDs(ids) jobs, err := models.GetCloudbrainByIDs(ids)
if err != nil { if err != nil {


Loading…
Cancel
Save