mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 22:54:24 +00:00
bug fixed for issue count (#881)
This commit is contained in:
parent
40f4377717
commit
b6dd6210ea
@ -1312,7 +1312,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul
|
|||||||
func GetRepoIssueStats(repoID, uid int64, filterMode int, isPull bool) (numOpen int64, numClosed int64) {
|
func GetRepoIssueStats(repoID, uid int64, filterMode int, isPull bool) (numOpen int64, numClosed int64) {
|
||||||
countSession := func(isClosed, isPull bool, repoID int64) *xorm.Session {
|
countSession := func(isClosed, isPull bool, repoID int64) *xorm.Session {
|
||||||
sess := x.
|
sess := x.
|
||||||
Where("issue.repo_id = ?", isClosed).
|
Where("is_closed = ?", isClosed).
|
||||||
And("is_pull = ?", isPull).
|
And("is_pull = ?", isPull).
|
||||||
And("repo_id = ?", repoID)
|
And("repo_id = ?", repoID)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user