New setting: introduce a decote/discount to exercice's gain
This commit is contained in:
parent
838ce2fb3f
commit
4451e41285
11 changed files with 123 additions and 24 deletions
|
@ -116,7 +116,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
|
||||
// Fill exercices, only if the challenge is started
|
||||
ret.Exercices = map[string]myTeamExercice{}
|
||||
if exos, err := GetExercices(); err != nil {
|
||||
if exos, err := GetDiscountedExercices(); err != nil {
|
||||
return ret, err
|
||||
} else if started {
|
||||
for _, e := range exos {
|
||||
|
|
Reference in a new issue