include id_theme in Exercice struct

This commit is contained in:
nemunaire 2018-12-08 21:17:04 +01:00
parent 69979ced1d
commit 78b6211b94
4 changed files with 11 additions and 27 deletions

View file

@ -44,7 +44,7 @@ func treatSubmission(pathname string, team fic.Team, exercice_id string) {
}
// Find the corresponding theme
theme, err := exercice.GetTheme()
theme, err := fic.GetTheme(exercice.IdTheme)
if err != nil {
log.Printf("%s [ERR] Unable to retrieve theme for exercice %d: %s\n", id, eid, err)
return