fic: Define gain even if the estimation fails

This commit is contained in:
nemunaire 2022-02-04 17:32:55 +01:00
parent 25e2e60092
commit 40a9b0d187

View file

@ -156,6 +156,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
exercice.Gain = int(gain * GlobalScoreCoefficient)
} else {
log.Printf("ERROR during gain estimation (tid=%d ; eid=%d): %s", t.Id, e.Id, err.Error())
exercice.Gain = int(float64(e.Gain) * GlobalScoreCoefficient)
}
}