fileexporter: Include standalone exercices
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7f38911bbb
commit
961542283d
3 changed files with 19 additions and 14 deletions
|
|
@ -72,13 +72,9 @@ func SpeedySyncDeep(i Importer) (errs SyncReport) {
|
|||
errs.ThemesSync = append(errs.ThemesSync, sterr.Error())
|
||||
}
|
||||
|
||||
if themes, err := fic.GetThemes(); err == nil {
|
||||
if themes, err := fic.GetThemesExtended(); err == nil {
|
||||
DeepSyncProgress = 2
|
||||
|
||||
if i.Exists(fic.StandaloneExercicesDirectory) {
|
||||
themes = append(themes, &fic.StandaloneExercicesTheme)
|
||||
}
|
||||
|
||||
var themeStep uint8 = uint8(250) / uint8(len(themes))
|
||||
|
||||
for tid, theme := range themes {
|
||||
|
|
@ -143,14 +139,9 @@ func SyncDeep(i Importer) (errs SyncReport) {
|
|||
}
|
||||
|
||||
// Synchronize themes
|
||||
if themes, err := fic.GetThemes(); err == nil {
|
||||
if themes, err := fic.GetThemesExtended(); err == nil {
|
||||
DeepSyncProgress = 2
|
||||
|
||||
// Also synchronize standalone exercices
|
||||
if i.Exists(fic.StandaloneExercicesDirectory) {
|
||||
themes = append(themes, &fic.StandaloneExercicesTheme)
|
||||
}
|
||||
|
||||
var themeStep uint8 = uint8(250) / uint8(len(themes))
|
||||
|
||||
for tid, theme := range themes {
|
||||
|
|
|
|||
Reference in a new issue