From 05b128a9f7543771fac6986f87a2cfa387313e06 Mon Sep 17 00:00:00 2001 From: Tyrone Yeh Date: Fri, 22 Jul 2022 21:54:47 +0800 Subject: [PATCH 1/2] Add repository condition for issue count --- routers/web/user/home.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 698117e9571fb..f3d5625700d0a 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -591,6 +591,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) { LabelIDs: opts.LabelIDs, Org: org, Team: team, + RepoIDs: repoIDs, } issueStats, err = issues_model.GetUserIssueStats(statsOpts) From c08b8fac08d5b0fb8b861374a1b8bf44dd2a89a7 Mon Sep 17 00:00:00 2001 From: Tyrone Yeh Date: Sun, 24 Jul 2022 07:21:20 +0800 Subject: [PATCH 2/2] Update routers/web/user/home.go Co-authored-by: Gusted --- routers/web/user/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/user/home.go b/routers/web/user/home.go index f3d5625700d0a..648269980472e 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -591,7 +591,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) { LabelIDs: opts.LabelIDs, Org: org, Team: team, - RepoIDs: repoIDs, + RepoCond: opts.RepoCond, } issueStats, err = issues_model.GetUserIssueStats(statsOpts)