1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 00:45:46 +00:00

working part of #9998 (#10114) (#10115)

Co-authored-by: zeripath <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
6543 2020-02-03 04:19:04 +01:00 committed by GitHub
parent 1ed4323005
commit 6896dad675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -525,13 +525,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