New setting: introduce a decote/discount to exercice's gain

This commit is contained in:
nemunaire 2023-04-01 17:11:40 +02:00
parent 838ce2fb3f
commit 4451e41285
11 changed files with 123 additions and 24 deletions

View file

@ -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 {