summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-05-12 23:54:35 +0200
committerGitHub <noreply@github.com>2020-05-12 22:54:35 +0100
commit7257c39ddfe9d9d424192e6bd307a70ed544f5be (patch)
tree67e2fb0861e0b5fe610e424c8b3906db438c6335 /routers/user
parentba40263fdda53446c7cae6e41885ebdee8bb7b52 (diff)
downloadgitea-7257c39ddfe9d9d424192e6bd307a70ed544f5be.tar.gz
gitea-7257c39ddfe9d9d424192e6bd307a70ed544f5be.zip
Refactor Milestone related (#11225)
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 816968562f..199694f236 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -224,7 +224,7 @@ func Milestones(ctx *context.Context) {
}
}
- counts, err := models.CountMilestones(userRepoCond, isShowClosed)
+ counts, err := models.CountMilestonesByRepoCond(userRepoCond, isShowClosed)
if err != nil {
ctx.ServerError("CountMilestonesByRepoIDs", err)
return
@@ -267,7 +267,7 @@ func Milestones(ctx *context.Context) {
i++
}
- milestoneStats, err := models.GetMilestonesStats(repoCond)
+ milestoneStats, err := models.GetMilestonesStatsByRepoCond(repoCond)
if err != nil {
ctx.ServerError("GetMilestoneStats", err)
return
@@ -277,7 +277,7 @@ func Milestones(ctx *context.Context) {
if len(repoIDs) == 0 {
totalMilestoneStats = milestoneStats
} else {
- totalMilestoneStats, err = models.GetMilestonesStats(userRepoCond)
+ totalMilestoneStats, err = models.GetMilestonesStatsByRepoCond(userRepoCond)
if err != nil {
ctx.ServerError("GetMilestoneStats", err)
return