qa: Use GetThemesExtended to include standalones exercices
This commit is contained in:
parent
38fa6ec1de
commit
a82e3642a8
2 changed files with 22 additions and 2 deletions
|
@ -118,7 +118,7 @@ func getExerciceQA(c *gin.Context) {
|
|||
func exportQA(c *gin.Context) {
|
||||
var report string
|
||||
|
||||
themes, err := fic.GetThemes()
|
||||
themes, err := fic.GetThemesExtended()
|
||||
if err != nil {
|
||||
log.Println("Unable to GetThemes: ", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": fmt.Sprintf("Unable to list themes: %s", err.Error())})
|
||||
|
@ -191,7 +191,7 @@ type ExportReport struct {
|
|||
func exportQAJSON(c *gin.Context) {
|
||||
report := map[string]ExportTheme{}
|
||||
|
||||
themes, err := fic.GetThemes()
|
||||
themes, err := fic.GetThemesExtended()
|
||||
if err != nil {
|
||||
log.Println("Unable to GetThemes: ", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": fmt.Sprintf("Unable to list themes: %s", err.Error())})
|
||||
|
|
Reference in a new issue