sync: Also import hints during speed sync

This commit is contained in:
nemunaire 2021-08-31 19:34:47 +02:00
parent 1def2c97c1
commit 6223d2be36

View File

@ -56,10 +56,12 @@ func SpeedySyncDeep(i Importer) (errs map[string][]string) {
log.Printf("Speedy synchronization in progress: %d/255 - doing Theme %q, Exercice %q: %q\n", DeepSyncProgress, theme.Name, exercice.Title, exercice.Path) log.Printf("Speedy synchronization in progress: %d/255 - doing Theme %q, Exercice %q: %q\n", DeepSyncProgress, theme.Name, exercice.Title, exercice.Path)
DeepSyncProgress = 3 + uint8(tid)*themeStep + uint8(eid)*exerciceStep DeepSyncProgress = 3 + uint8(tid)*themeStep + uint8(eid)*exerciceStep
flagsBindings, ferrs := SyncExerciceFlags(i, exercice)
errs[theme.Name] = append(errs[theme.Name], ferrs...)
DeepSyncProgress += exerciceStep / 2 DeepSyncProgress += exerciceStep / 2
_, ferrs := SyncExerciceFlags(i, exercice) _, herrs := SyncExerciceHints(i, exercice, flagsBindings)
errs[theme.Name] = append(errs[theme.Name], ferrs...) errs[theme.Name] = append(errs[theme.Name], herrs...)
} }
} }
} }