|
|
@ -17,6 +17,7 @@ import ( |
|
|
|
"code.gitea.io/gitea/models/db" |
|
|
|
"code.gitea.io/gitea/models/db" |
|
|
|
user_model "code.gitea.io/gitea/models/user" |
|
|
|
user_model "code.gitea.io/gitea/models/user" |
|
|
|
"code.gitea.io/gitea/modules/timeutil" |
|
|
|
"code.gitea.io/gitea/modules/timeutil" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/modules/util" |
|
|
|
|
|
|
|
|
|
|
|
"xorm.io/builder" |
|
|
|
"xorm.io/builder" |
|
|
|
) |
|
|
|
) |
|
|
@ -107,6 +108,7 @@ func (label *Label) CalOpenOrgIssues(repoID, labelID int64) { |
|
|
|
counts, _ := CountIssuesByRepo(&IssuesOptions{ |
|
|
|
counts, _ := CountIssuesByRepo(&IssuesOptions{ |
|
|
|
RepoID: repoID, |
|
|
|
RepoID: repoID, |
|
|
|
LabelIDs: []int64{labelID}, |
|
|
|
LabelIDs: []int64{labelID}, |
|
|
|
|
|
|
|
IsClosed: util.OptionalBoolFalse, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
for _, count := range counts { |
|
|
|
for _, count := range counts { |
|
|
|