mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
Improve delete SSH key
This commit is contained in:
parent
7cb5a15c9b
commit
8ca14e2109
14 changed files with 49 additions and 101 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue