diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-07 04:15:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-07 04:15:08 -0400 |
commit | 63cc14062a891a99a429f2eef0ee90a3f5795f47 (patch) | |
tree | 5149f44074323e55763a0ca4c880177399f74b06 /models/models.go | |
parent | 7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3 (diff) | |
download | gitea-63cc14062a891a99a429f2eef0ee90a3f5795f47.tar.gz gitea-63cc14062a891a99a429f2eef0ee90a3f5795f47.zip |
Paging function for users and repositories
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go index 070784f137..ded8b05984 100644 --- a/models/models.go +++ b/models/models.go @@ -148,9 +148,9 @@ type Statistic struct { } func GetStatistic() (stats Statistic) { - stats.Counter.User, _ = x.Count(new(User)) + stats.Counter.User = CountUsers() + stats.Counter.Repo = CountRepositories() stats.Counter.PublicKey, _ = x.Count(new(PublicKey)) - stats.Counter.Repo, _ = x.Count(new(Repository)) stats.Counter.Watch, _ = x.Count(new(Watch)) stats.Counter.Action, _ = x.Count(new(Action)) stats.Counter.Access, _ = x.Count(new(Access)) |