Points are given through my.json
This commit is contained in:
parent
fdeffbdefe
commit
fce5b26e5d
2 changed files with 3 additions and 1 deletions
|
|
@ -74,7 +74,7 @@
|
|||
<a style="float: right;" class="btn btn-default btn-xs" href="/edit" ng-show="false">edit</a><br><br>
|
||||
|
||||
<span ng-show="teams[my.team_id].rank">{{ teams[my.team_id].rank }}<sup>e</sup> sur {{ teams_count }} –</span>
|
||||
{{ teams[my.team_id].score }} points
|
||||
{{ my.score }} points
|
||||
<a style="float: right;" class="btn btn-default btn-xs btn-primary" href="/rank">classement</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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