libfic: Type key is now Label
This commit is contained in:
parent
a1c6eadbe5
commit
9a9d5fcda4
5 changed files with 34 additions and 33 deletions
|
|
@ -214,7 +214,7 @@ func (e Exercice) CheckResponse(resps map[string]string, t Team) (bool, error) {
|
|||
|
||||
valid := true
|
||||
for _, key := range keys {
|
||||
if res, ok := resps[key.Type]; !ok {
|
||||
if res, ok := resps[key.Label]; !ok {
|
||||
valid = false
|
||||
} else if !key.Check(res) {
|
||||
if !PartialValidation || t.HasPartiallySolved(key) == nil {
|
||||
|
|
|
|||
Reference in a new issue