mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-18 07:53:04 +00:00
Estimate Action Count in Statistics (#19775)
This commit is contained in:
parent
468387e9ce
commit
ffb7ab31f2
3 changed files with 24 additions and 2 deletions
|
@ -56,7 +56,7 @@ func GetStatistic() (stats Statistic) {
|
|||
stats.Counter.Repo, _ = repo_model.CountRepositories(db.DefaultContext, repo_model.CountRepositoryOptions{})
|
||||
stats.Counter.Watch, _ = e.Count(new(repo_model.Watch))
|
||||
stats.Counter.Star, _ = e.Count(new(repo_model.Star))
|
||||
stats.Counter.Action, _ = e.Count(new(Action))
|
||||
stats.Counter.Action, _ = db.EstimateCount(db.DefaultContext, new(Action))
|
||||
stats.Counter.Access, _ = e.Count(new(access_model.Access))
|
||||
|
||||
type IssueCount struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue