Export help format string in my.json
This commit is contained in:
parent
195490484c
commit
8ac2776cca
@ -29,6 +29,7 @@ type myTeamMCQ struct {
|
|||||||
}
|
}
|
||||||
type myTeamFlag struct {
|
type myTeamFlag struct {
|
||||||
Label string `json:"label"`
|
Label string `json:"label"`
|
||||||
|
Help string `json:"help,omitempty"`
|
||||||
Solved *time.Time `json:"found,omitempty"`
|
Solved *time.Time `json:"found,omitempty"`
|
||||||
Soluce []byte `json:"soluce,omitempty"`
|
Soluce []byte `json:"soluce,omitempty"`
|
||||||
}
|
}
|
||||||
@ -172,6 +173,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
flag.Label = k.Label
|
flag.Label = k.Label
|
||||||
|
flag.Help = k.Help
|
||||||
|
|
||||||
exercice.Flags[k.Id] = flag
|
exercice.Flags[k.Id] = flag
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user