include id_theme in Exercice struct
This commit is contained in:
parent
69979ced1d
commit
78b6211b94
4 changed files with 11 additions and 27 deletions
|
@ -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
|
||||
|
|
Reference in a new issue