Added groups for datapoints

This commit is contained in:
Magnus Åhall 2024-05-20 19:40:19 +02:00
parent 63956de837
commit d3d6d5d13d
7 changed files with 48 additions and 8 deletions

View file

@ -555,6 +555,7 @@ func pageDatapointUpdate(w http.ResponseWriter, r *http.Request, _ *session.T) {
var dp Datapoint
dp.ID = id
dp.Group = r.FormValue("group")
dp.Name = r.FormValue("name")
dp.Datatype = DatapointType(r.FormValue("datatype"))
err = dp.Update()