my.json: When solved=false, solved_number now contains tries count
This commit is contained in:
parent
85646fd2d7
commit
e55804fecb
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
||||||
exercice.Hint = e.Hint
|
exercice.Hint = e.Hint
|
||||||
if t == nil {
|
if t == nil {
|
||||||
exercice.Solved = true
|
exercice.Solved = true
|
||||||
|
exercice.SolvedNumber = e.TriedCount()
|
||||||
} else {
|
} else {
|
||||||
exercice.Solved, exercice.SolvedTime, exercice.SolvedNumber = t.HasSolved(e)
|
exercice.Solved, exercice.SolvedTime, exercice.SolvedNumber = t.HasSolved(e)
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue