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

@ -130,9 +130,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
} else {
for _, k := range keys {
if t == nil {
exercice.Keys = append(exercice.Keys, fmt.Sprintf("%x", k.Checksum)+k.Type)
exercice.Keys = append(exercice.Keys, fmt.Sprintf("%x", k.Checksum)+k.Label)
} else {
exercice.Keys = append(exercice.Keys, k.Type)
exercice.Keys = append(exercice.Keys, k.Label)
if PartialValidation {
exercice.SolvedMat = append(exercice.SolvedMat, t.HasPartiallySolved(k) != nil)
}