Points are given through my.json
This commit is contained in:
parent
fdeffbdefe
commit
fce5b26e5d
2 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Reference in a new issue