From 122e919dafb07e5f5de106592d12311d97e91cf5 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 24 Mar 2024 20:01:09 +0100 Subject: [PATCH] admin: Don't do only standalone exercices when doing speedy sync --- admin/sync/full.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/sync/full.go b/admin/sync/full.go index 837d19b0..b27c3b33 100644 --- a/admin/sync/full.go +++ b/admin/sync/full.go @@ -60,7 +60,7 @@ func SpeedySyncDeep(i Importer) (errs SyncReport) { DeepSyncProgress = 2 if i.Exists(StandaloneExercicesDirectory) { - themes = append([]*fic.Theme{}, &fic.Theme{Path: StandaloneExercicesDirectory}) + themes = append(themes, &fic.Theme{Path: StandaloneExercicesDirectory}) } var themeStep uint8 = uint8(250) / uint8(len(themes))