Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.6.1^2
zouap 3 years ago
parent
commit
9378f3229b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      routers/home.go

+ 5
- 3
routers/home.go View File

@@ -7,6 +7,7 @@ package routers


import ( import (
"bytes" "bytes"
"fmt"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
@@ -792,9 +793,10 @@ func RecommendHomeInfo(ctx *context.Context) {


func getCloudbrainNums() (map[string]string, error) { func getCloudbrainNums() (map[string]string, error) {
result := make(map[string]string) result := make(map[string]string)
result["completed_task"] = "1800"
result["running_task"] = "20"
result["wait_task"] = "30"
cloudStatusMap := models.GetAllStatusCloudBrain()
result["completed_task"] = fmt.Sprint(cloudStatusMap["COMPLETED"])
result["running_task"] = fmt.Sprint(cloudStatusMap["RUNNING"])
result["wait_task"] = fmt.Sprint(cloudStatusMap["WAITING"])
return result, nil return result, nil
} }




Loading…
Cancel
Save