Theme can be optional: exercices can be standalone
This commit is contained in:
parent
3519f7416d
commit
a0bc832910
8 changed files with 81 additions and 39 deletions
|
|
@ -22,7 +22,7 @@ var ExerciceCurrentCoefficient = 1.0
|
|||
// Exercice represents a challenge inside a Theme.
|
||||
type Exercice struct {
|
||||
Id int64 `json:"id"`
|
||||
IdTheme int64 `json:"id_theme"`
|
||||
IdTheme *int64 `json:"id_theme"`
|
||||
Language string `json:"lang,omitempty"`
|
||||
Title string `json:"title"`
|
||||
Authors string `json:"authors"`
|
||||
|
|
|
|||
Reference in a new issue