1
0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 03:35:55 +01:00
This commit is contained in:
Unknown 2014-05-13 14:49:20 -04:00
parent 2eee1e9bc2
commit 5d5c4535cb

@ -10,6 +10,8 @@ import (
"strings"
"time"
"github.com/go-xorm/xorm"
"github.com/gogits/gogs/modules/base"
)
@ -281,9 +283,10 @@ const (
func GetIssueStats(rid, uid int64, isShowClosed bool, filterMode int) *IssueStats {
stats := &IssueStats{}
issue := new(Issue)
tmpSess := &xorm.Session{}
sess := orm.Where("repo_id=?", rid)
tmpSess := sess
*tmpSess = *sess
stats.OpenCount, _ = tmpSess.And("is_closed=?", false).Count(issue)
*tmpSess = *sess
stats.ClosedCount, _ = tmpSess.And("is_closed=?", true).Count(issue)