checker: Ensure a flag is found before considering a good response
This commit is contained in:
parent
c53140b88e
commit
76606b3c80
@ -594,8 +594,11 @@ func (e *Exercice) CheckResponse(cksum []byte, respflags map[int]string, respmcq
|
|||||||
valid = valid && flag.IsOptionnal()
|
valid = valid && flag.IsOptionnal()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flag.FoundBy(t)
|
err := flag.FoundBy(t)
|
||||||
goodResponses += 1
|
if err == nil {
|
||||||
|
// err is unicity issue, probably flag already found
|
||||||
|
goodResponses += 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user