[admin] statistic generation

This commit is contained in:
nemunaire 2016-10-13 19:52:40 +02:00
commit fd8778f533
2 changed files with 108 additions and 0 deletions

View file

@ -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" {