From bd5050b24a069165f4ae4368f7e069b7d83bcc62 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 14 Jan 2025 10:58:17 +0100 Subject: [PATCH 1/3] admin: Fix missing replacement --- admin/static/views/sync.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/static/views/sync.html b/admin/static/views/sync.html index 3643d4d5..106cc6c3 100644 --- a/admin/static/views/sync.html +++ b/admin/static/views/sync.html @@ -22,7 +22,7 @@
Dernier import : {{ syncReport._updated[syncReport._updated.length-1] | date:"medium" }}
- + Voir les dépôts From e7b39b0d9247a33cbd98c1fc34a2cff855b9a566 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 14 Jan 2025 12:07:11 +0100 Subject: [PATCH 2/3] admin: Also fill lastSyncError in autosync --- admin/api/sync.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/api/sync.go b/admin/api/sync.go index 47bfaaad..0bcba713 100644 --- a/admin/api/sync.go +++ b/admin/api/sync.go @@ -284,10 +284,12 @@ func autoSync(c *gin.Context) { if !IsProductionEnv { if err := sync.GlobalImporter.Sync(); err != nil { + lastSyncError = err.Error() log.Println("Unable to sync.GI.Sync:", err.Error()) c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Unable to perform the pull."}) return } + lastSyncError = "" } themes, err := fic.GetThemes() From 8a6d77e9ccd8f67053134ef572d608edd0c3b452 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 14 Jan 2025 15:26:04 +0100 Subject: [PATCH 3/3] ui: Force download of XML files --- frontend/fic/src/lib/components/ExerciceDownloads.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/fic/src/lib/components/ExerciceDownloads.svelte b/frontend/fic/src/lib/components/ExerciceDownloads.svelte index a62d7d91..c05a45a0 100644 --- a/frontend/fic/src/lib/components/ExerciceDownloads.svelte +++ b/frontend/fic/src/lib/components/ExerciceDownloads.svelte @@ -27,7 +27,7 @@ {#each files as file, index} - +