diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-12-12 23:48:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-12 23:48:20 +0800 |
commit | 572324049008ac803d3d7c17a7b3a81ef00386fc (patch) | |
tree | a9c3709643a23165d27aa67e76f10f26a89936d5 /models/statistic.go | |
parent | 0a7e8327a017c5dd43e552bbcd0d0f056bc1671b (diff) | |
download | gitea-572324049008ac803d3d7c17a7b3a81ef00386fc.tar.gz gitea-572324049008ac803d3d7c17a7b3a81ef00386fc.zip |
Some repository refactors (#17950)
* some repository refactors
* remove unnecessary code
* Fix test
* Remove unnecessary banner
Diffstat (limited to 'models/statistic.go')
-rw-r--r-- | models/statistic.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/statistic.go b/models/statistic.go index 175815081f..f39cdd5eb7 100644 --- a/models/statistic.go +++ b/models/statistic.go @@ -50,8 +50,8 @@ func GetStatistic() (stats Statistic) { stats.Counter.Org = CountOrganizations() stats.Counter.PublicKey, _ = e.Count(new(asymkey_model.PublicKey)) stats.Counter.Repo = repo_model.CountRepositories(true) - stats.Counter.Watch, _ = e.Count(new(Watch)) - stats.Counter.Star, _ = e.Count(new(Star)) + 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.Access, _ = e.Count(new(Access)) |