libfic: Type key is now Label

This commit is contained in:
nemunaire 2017-12-12 05:06:34 +01:00 committed by Pierre-Olivier Mercier
commit 9a9d5fcda4
5 changed files with 34 additions and 33 deletions

View file

@ -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 {