Export help format string in my.json

This commit is contained in:
nemunaire 2018-11-28 02:33:32 +01:00
parent 195490484c
commit 8ac2776cca

View File

@ -29,6 +29,7 @@ type myTeamMCQ struct {
}
type myTeamFlag struct {
Label string `json:"label"`
Help string `json:"help,omitempty"`
Solved *time.Time `json:"found,omitempty"`
Soluce []byte `json:"soluce,omitempty"`
}
@ -172,6 +173,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
}
flag.Label = k.Label
flag.Help = k.Help
exercice.Flags[k.Id] = flag
}