[admin] statistic generation
This commit is contained in:
parent
b2051ac3fe
commit
fd8778f533
2 changed files with 108 additions and 0 deletions
|
|
@ -85,6 +85,12 @@ func listTeam(args []string, body []byte) (interface{}, error) {
|
|||
return fic.MyJSONTeam(team, true)
|
||||
} else if args[1] == "wait.json" {
|
||||
return fic.MyJSONTeam(team, false)
|
||||
} else if args[1] == "stats.json" {
|
||||
if team != nil {
|
||||
return team.GetStats()
|
||||
} else {
|
||||
return fic.GetTeamsStats(nil)
|
||||
}
|
||||
} else if args[1] == "tries" {
|
||||
return fic.GetTries(team, nil)
|
||||
} else if team != nil && args[1] == "members" {
|
||||
|
|
|
|||
Reference in a new issue