From 9c433b528e0a1715cfa5d7aa21449f1f65ea73c9 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Tue, 14 Apr 2020 16:39:30 +0800 Subject: [PATCH] fixed https://github.com/crawlab-team/crawlab/issues/684 --- backend/routes/spider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/spider.go b/backend/routes/spider.go index c3dd4623..b8feef6f 100644 --- a/backend/routes/spider.go +++ b/backend/routes/spider.go @@ -859,7 +859,7 @@ func GetSpiderStats(c *gin.Context) { overview.AvgWaitDuration = overview.TotalWaitDuration / taskCount overview.AvgRuntimeDuration = overview.TotalRuntimeDuration / taskCount - items, err := model.GetDailyTaskStats(bson.M{"spider_id": spider.Id, "user_id": bson.M{"user_id": services.GetCurrentUserId(c)}}) + items, err := model.GetDailyTaskStats(bson.M{"spider_id": spider.Id, "user_id": services.GetCurrentUserId(c)}) if err != nil { log.Errorf(err.Error()) HandleError(http.StatusInternalServerError, c, err)