mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 02:08:36 +00:00
Paging function for users and repositories
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user