HasSolved now returns a tuple (bool, Time, int)
This commit is contained in:
parent
c33c2b8e8a
commit
381aefa597
3 changed files with 19 additions and 12 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue