From 60d6d55107ed7a3c96c21fb93c13871ebd4c8a20 Mon Sep 17 00:00:00 2001 From: liuzx Date: Sat, 7 May 2022 15:42:49 +0800 Subject: [PATCH] update --- routers/api/v1/repo/cloudbrain_dashboard.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routers/api/v1/repo/cloudbrain_dashboard.go b/routers/api/v1/repo/cloudbrain_dashboard.go index 72e54f747..f061bdcad 100644 --- a/routers/api/v1/repo/cloudbrain_dashboard.go +++ b/routers/api/v1/repo/cloudbrain_dashboard.go @@ -195,7 +195,6 @@ func GetAllCloudbrainsTrend(ctx *context.Context) { } func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { - recordBeginTime, err := getBrainRecordBeginTime() if err != nil { log.Error("Can not get record begin time", err) @@ -216,7 +215,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { if pageSize <= 0 { pageSize = DEFAULT_PAGE_SIZE } - debugOneCount, err := models.GenerateDebugOneCount(beginTime, endTime) if err != nil { log.Error("Can not query debugOneCount.", err) @@ -253,7 +251,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { ctx.Error(http.StatusBadRequest, ctx.Tr("inferenceTwoCount_get_error")) return } - cloudbrainsPeriodData := CloudbrainsPeriodData{ DebugOneCount: debugOneCount, BenchmarkOneCount: benchmarkOneCount, @@ -271,7 +268,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { fmt.Printf("testtime is:%s", testtime) ctx.JSON(http.StatusOK, cloudbrainsPeriodData) - } func getCloudbrainCount(beginTime time.Time, endTime time.Time) (int64, int64, int64, int64, int64, int64, int64, int64, int64, error) {