libfic: Fix my.json generation when number flag are present
This commit is contained in:
parent
50b3e4c739
commit
9d171cfe89
@ -240,8 +240,8 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(flag.Type, "number") {
|
if strings.HasPrefix(flag.Type, "number") {
|
||||||
flag.Type = "number"
|
|
||||||
flag.Min, flag.Max, flag.Step, err = AnalyzeNumberFlag(flag.Type)
|
flag.Min, flag.Max, flag.Step, err = AnalyzeNumberFlag(flag.Type)
|
||||||
|
flag.Type = "number"
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user