summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-06 16:28:52 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-06 16:28:52 -0400
commit8ca14e210959b9316a4eed6e127de1eb775fda74 (patch)
tree93af1213d80c700838b1c41eb1c1c9ffcbfd60d6 /models/models.go
parent7cb5a15c9b7a2a118d756d15cb745743f207a318 (diff)
downloadgitea-8ca14e210959b9316a4eed6e127de1eb775fda74.tar.gz
gitea-8ca14e210959b9316a4eed6e127de1eb775fda74.zip
Improve delete SSH key
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/models/models.go b/models/models.go
index ebb558fcc8..6e4f7d1022 100644
--- a/models/models.go
+++ b/models/models.go
@@ -139,10 +139,9 @@ func NewEngine() (err error) {
type Statistic struct {
Counter struct {
- User, PublicKey, Repo,
- Watch, Action, Access,
- Issue, Comment,
- Mirror, Oauth, Release int64
+ User, PublicKey, Repo, Watch, Action, Access,
+ Issue, Comment, Mirror, Oauth, Release,
+ LoginSource, Webhook int64
}
}
@@ -158,6 +157,8 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Mirror, _ = orm.Count(new(Mirror))
stats.Counter.Oauth, _ = orm.Count(new(Oauth2))
stats.Counter.Release, _ = orm.Count(new(Release))
+ stats.Counter.LoginSource, _ = orm.Count(new(LoginSource))
+ stats.Counter.Webhook, _ = orm.Count(new(Webhook))
return
}