From 8ca14e210959b9316a4eed6e127de1eb775fda74 Mon Sep 17 00:00:00 2001
From: Unknown <joe2010xtmf@163.com>
Date: Tue, 6 May 2014 16:28:52 -0400
Subject: Improve delete SSH key

---
 models/models.go | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'models/models.go')

diff --git a/models/models.go b/models/models.go
index ebb558fc..6e4f7d10 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
 }
 
-- 
cgit v1.2.3