ui: Avoid some hard coded strings

This commit is contained in:
nemunaire 2024-03-17 17:07:25 +01:00
parent 6e684436d1
commit b3c207d07d
2 changed files with 8 additions and 3 deletions

View file

@ -43,7 +43,12 @@ func ExportThemes() (interface{}, error) {
if themes, err := GetThemes(); err != nil {
return nil, err
} else {
themes = append(themes, &Theme{URLId: "_", Path: "exercices"})
// Append standalone exercices fake-themes
themes = append(themes, &Theme{
Name: "Défis indépendants",
URLId: "_",
Path: "exercices",
})
ret := map[string]exportedTheme{}
for _, theme := range themes {