admin/sync: rename Indice to Astuce

This commit is contained in:
nemunaire 2018-01-07 22:23:15 +01:00
parent db9077a85c
commit 6cc40be36a

View file

@ -21,7 +21,7 @@ func SyncExerciceHints(i Importer, exercice fic.Exercice) []string {
if hint_cnt, err := getFileContent(i, path.Join(exercice.Path, "hints", hfile)); err != nil {
errs = append(errs, fmt.Sprintf("%q: unable to read hint file %q: %s", path.Base(exercice.Path), hfile, err))
continue
} else if _, err := exercice.AddHint(fmt.Sprintf("Indice #%d", n + 1), hint_cnt, 1); err != nil {
} else if _, err := exercice.AddHint(fmt.Sprintf("Astuce #%d", n + 1), hint_cnt, 1); err != nil {
errs = append(errs, fmt.Sprintf("%q: unable to add hint %q: %s", path.Base(exercice.Path), hfile, err))
continue
}