HasSolved now returns a tuple (bool, Time, int)

This commit is contained in:
nemunaire 2016-01-18 19:40:11 +01:00
commit 381aefa597
3 changed files with 19 additions and 12 deletions

View file

@ -134,7 +134,8 @@ func (e Exercice) Solved(t Team) error {
}
func (e Exercice) CheckResponse(response string, t Team) (bool, error) {
if t.HasSolved(e) {
s, _, _ := t.HasSolved(e)
if s {
return true, nil
}