tech(): replace spaces to handle input more graceful

This commit is contained in:
bergquist 2016-12-02 23:43:02 +01:00
parent 9dd6cf45ac
commit c9b7f8603e

View File

@ -90,6 +90,8 @@ func init() {
queryRes := tsdb.NewQueryResult()
stringInput := query.Model.Get("stringInput").MustString()
stringInput = strings.Replace(stringInput, " ", "", -1)
values := []null.Float{}
for _, strVal := range strings.Split(stringInput, ",") {
if strVal == "null" {