From 5e6d7845f9bf3dd8370b0255ef9a092a97c8a52a Mon Sep 17 00:00:00 2001 From: marvzhang Date: Sun, 19 Apr 2020 12:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=97=A0=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/project.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/backend/routes/project.go b/backend/routes/project.go index f0dd1198..4fdb6b6d 100644 --- a/backend/routes/project.go +++ b/backend/routes/project.go @@ -47,20 +47,20 @@ func GetProjectList(c *gin.Context) { } // 获取未被分配的爬虫数量 - if tag == "" { - noProject := model.Project{ - Id: bson.ObjectIdHex(constants.ObjectIdNull), - Name: "No Project", - Description: "Not assigned to any project", - } - spiders, err := noProject.GetSpiders() - if err != nil { - HandleError(http.StatusInternalServerError, c, err) - return - } - noProject.Spiders = spiders - projects = append(projects, noProject) - } + //if tag == "" { + // noProject := model.Project{ + // Id: bson.ObjectIdHex(constants.ObjectIdNull), + // Name: "No Project", + // Description: "Not assigned to any project", + // } + // spiders, err := noProject.GetSpiders() + // if err != nil { + // HandleError(http.StatusInternalServerError, c, err) + // return + // } + // noProject.Spiders = spiders + // projects = append(projects, noProject) + //} c.JSON(http.StatusOK, ListResponse{ Status: "ok",