New field for exercice to display a text after exercice validation
This commit is contained in:
parent
87471acf98
commit
21697f01ca
9 changed files with 43 additions and 18 deletions
|
@ -148,6 +148,10 @@ func partUpdateExercice(exercice fic.Exercice, body []byte) (interface{}, error)
|
|||
exercice.Headline = ue.Headline
|
||||
}
|
||||
|
||||
if len(ue.Finished) > 0 {
|
||||
exercice.Finished = ue.Finished
|
||||
}
|
||||
|
||||
if len(ue.Overview) > 0 {
|
||||
exercice.Overview = ue.Overview
|
||||
}
|
||||
|
@ -203,7 +207,7 @@ func createExercice(theme fic.Theme, body []byte) (interface{}, error) {
|
|||
}
|
||||
}
|
||||
|
||||
return theme.AddExercice(ue.Title, ue.URLId, ue.Path, ue.Statement, ue.Overview, ue.Headline, depend, ue.Gain, ue.VideoURI)
|
||||
return theme.AddExercice(ue.Title, ue.URLId, ue.Path, ue.Statement, ue.Overview, ue.Headline, depend, ue.Gain, ue.VideoURI, ue.Finished)
|
||||
}
|
||||
|
||||
type uploadedHint struct {
|
||||
|
|
Reference in a new issue