libfic: Add new row in exercices table, to store relative path to exercice
This commit is contained in:
parent
bfd7126e1e
commit
38a0f4c9b5
3 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
Reference in a new issue