Fix gain estimation error due to variable overwrite
This commit is contained in:
parent
3772af4965
commit
5fac0d4b30
2 changed files with 4 additions and 3 deletions
|
@ -148,8 +148,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
exercice.Finished = e.Finished
|
||||
exercice.Tries, _ = t.CountTries(e)
|
||||
} else {
|
||||
exercice.Tries, stime = t.CountTries(e)
|
||||
exercice.SolvedTime = stime
|
||||
var ttime *time.Time
|
||||
exercice.Tries, ttime = t.CountTries(e)
|
||||
exercice.SolvedTime = ttime
|
||||
if DisplayMCQBadCount && exercice.Tries > 0 {
|
||||
exercice.SolveDist = t.LastTryDist(e)
|
||||
}
|
||||
|
|
Reference in a new issue