sync: implement hint dependency on flags

This commit is contained in:
nemunaire 2019-11-25 16:18:59 +01:00
commit f3a34c00db
5 changed files with 175 additions and 116 deletions

View file

@ -55,11 +55,11 @@ func SyncDeep(i Importer) (errs map[string][]string) {
errs[theme.Name] = append(errs[theme.Name], SyncExerciceFiles(i, exercice)...)
DeepSyncProgress += exerciceStep / 3
_, ferrs := SyncExerciceFlags(i, exercice)
flagsBindings, ferrs := SyncExerciceFlags(i, exercice)
errs[theme.Name] = append(errs[theme.Name], ferrs...)
DeepSyncProgress += exerciceStep / 3
_, herrs := SyncExerciceHints(i, exercice)
_, herrs := SyncExerciceHints(i, exercice, flagsBindings)
errs[theme.Name] = append(errs[theme.Name], herrs...)
}
}