Commit c9b7f860 by bergquist

tech(): replace spaces to handle input more graceful

parent 9dd6cf45
...@@ -90,6 +90,8 @@ func init() { ...@@ -90,6 +90,8 @@ func init() {
queryRes := tsdb.NewQueryResult() queryRes := tsdb.NewQueryResult()
stringInput := query.Model.Get("stringInput").MustString() stringInput := query.Model.Get("stringInput").MustString()
stringInput = strings.Replace(stringInput, " ", "", -1)
values := []null.Float{} values := []null.Float{}
for _, strVal := range strings.Split(stringInput, ",") { for _, strVal := range strings.Split(stringInput, ",") {
if strVal == "null" { if strVal == "null" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment