Use Params#AddBool for is_closed
TJ Horner me@tjhorner.com
Fri, 24 Jan 2020 22:44:44 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
configs.go
→
configs.go
@@ -525,7 +525,7 @@ params["is_anonymous"] = strconv.FormatBool(config.IsAnonymous)
params.AddNonEmpty("type", config.Type) params["allows_multiple_answers"] = strconv.FormatBool(config.AllowsMultipleAnswers) params["correct_option_id"] = strconv.FormatInt(config.CorrectOptionID, 10) - params["is_closed"] = strconv.FormatBool(config.IsClosed) + params.AddBool("is_closed", config.IsClosed) return params, err }