Allow teams to change their name
This commit is contained in:
parent
f050dfce06
commit
136b436af5
7 changed files with 126 additions and 13 deletions
|
|
@ -25,6 +25,7 @@ type myTeamExercice struct {
|
|||
}
|
||||
type myTeam struct {
|
||||
Id int64 `json:"team_id"`
|
||||
Name string `json:"name"`
|
||||
Points int64 `json:"score"`
|
||||
Members []Member `json:"members"`
|
||||
Exercices map[string]myTeamExercice `json:"exercices"`
|
||||
|
|
@ -35,6 +36,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
if t == nil {
|
||||
ret.Id = 0
|
||||
} else {
|
||||
ret.Name = t.Name
|
||||
ret.Id = t.Id
|
||||
ret.Points, _ = t.GetPoints()
|
||||
if members, err := t.GetMembers(); err == nil {
|
||||
|
|
|
|||
Reference in a new issue