libfic: Add new row in exercices table, to store relative path to exercice

This commit is contained in:
nemunaire 2017-12-09 00:52:15 +01:00
parent bfd7126e1e
commit 38a0f4c9b5
3 changed files with 15 additions and 12 deletions

View file

@ -101,7 +101,7 @@ func createExercice(theme fic.Theme, body []byte) (interface{}, error) {
}
}
return theme.AddExercice(ue.Title, ue.Statement, depend, ue.Gain, ue.VideoURI)
return theme.AddExercice(ue.Title, ue.Path, ue.Statement, depend, ue.Gain, ue.VideoURI)
}
type uploadedKey struct {
@ -124,6 +124,7 @@ func createExerciceKey(exercice fic.Exercice, body []byte) (interface{}, error)
type uploadedHint struct {
Title string
Path string
Content string
Cost int64
URI string