Points are given through my.json

This commit is contained in:
nemunaire 2016-01-23 19:53:17 +01:00
commit fce5b26e5d
2 changed files with 3 additions and 1 deletions

View file

@ -25,6 +25,7 @@ type myTeamExercice struct {
}
type myTeam struct {
Id int64 `json:"team_id"`
Points int64 `json:"score"`
Exercices map[string]myTeamExercice `json:"exercices"`
}
@ -35,6 +36,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
} else {
ret.Id = t.Id
}
ret.Points, _ = t.GetPoints()
ret.Exercices = map[string]myTeamExercice{}
if exos, err := GetExercices(); err != nil {