Skip to content

Commit

Permalink
working part of #9998 (#10114)
Browse files Browse the repository at this point in the history
Co-authored-by: zeripath <art27@cantab.net>
  • Loading branch information
6543 and zeripath committed Feb 3, 2020
1 parent 2c90338 commit e959d1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions routers/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,17 @@ func Issues(ctx *context.Context) {
}
}

issueStats, err := models.GetUserIssueStats(models.UserIssueStatsOptions{
issueStatsOpts := models.UserIssueStatsOptions{
UserID: ctxUser.ID,
UserRepoIDs: userRepoIDs,
FilterMode: filterMode,
IsPull: isPullList,
IsClosed: isShowClosed,
})
}
if len(repoIDs) > 0 {
issueStatsOpts.UserRepoIDs = repoIDs
}
issueStats, err := models.GetUserIssueStats(issueStatsOpts)
if err != nil {
ctx.ServerError("GetUserIssueStats", err)
return
Expand Down

0 comments on commit e959d1a

Please sign in to comment.