fic: Define gain even if the estimation fails
This commit is contained in:
parent
25e2e60092
commit
40a9b0d187
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue