From 572324049008ac803d3d7c17a7b3a81ef00386fc Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 12 Dec 2021 23:48:20 +0800 Subject: Some repository refactors (#17950) * some repository refactors * remove unnecessary code * Fix test * Remove unnecessary banner --- models/statistic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/statistic.go') 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)) -- cgit v1.2.3