include id_theme in Exercice struct

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

View file

@ -97,9 +97,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
for _, e := range exos {
if t == nil || t.HasAccess(e) {
exercice := myTeamExercice{}
if tid, err := e.GetThemeId(); err == nil {
exercice.ThemeId = tid
}
exercice.ThemeId = e.IdTheme
exercice.Statement = strings.Replace(e.Statement, "$FILES$", FilesDir, -1)