sync: Split SyncFiles function into import and files sync

This commit is contained in:
nemunaire 2025-04-07 10:14:13 +02:00
parent e6f6686a39
commit c5d0616896
4 changed files with 118 additions and 82 deletions

View file

@ -246,7 +246,7 @@ func SyncThemeDeep(i Importer, theme *fic.Theme, tid int, themeStep uint8, excep
log.Printf("Deep 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
errs = multierr.Append(errs, SyncExerciceFiles(i, exercice, ex_exceptions[eid]))
errs = multierr.Append(errs, ImportExerciceFiles(i, exercice, ex_exceptions[eid]))
DeepSyncProgress += exerciceStep / 3
flagsBindings, ferrs := SyncExerciceFlags(i, exercice, ex_exceptions[eid])