Able to sync and export standalone exercices
This commit is contained in:
parent
76f830b332
commit
adb0e36dd4
15 changed files with 159 additions and 31 deletions
|
@ -140,7 +140,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
exercice := myTeamExercice{}
|
||||
exercice.Disabled = e.Disabled
|
||||
exercice.WIP = e.WIP
|
||||
exercice.ThemeId = *e.IdTheme
|
||||
if e.IdTheme != nil {
|
||||
exercice.ThemeId = *e.IdTheme
|
||||
}
|
||||
|
||||
exercice.Statement = strings.Replace(e.Statement, "$FILES$", FilesDir, -1)
|
||||
|
||||
|
|
Reference in a new issue