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