Fixed trigger edit regression and bumped to v39
This commit is contained in:
parent
6909b223a7
commit
d1599fe2b9
2 changed files with 3 additions and 3 deletions
|
@ -242,11 +242,11 @@ func DatapointRetrieve(id int, name string) (dp Datapoint, err error) { // {{{
|
|||
var query string
|
||||
var param any
|
||||
if id > 0 {
|
||||
query = `SELECT *, true AS found FROM datapoint WHERE id = $1`
|
||||
query = `SELECT id, "group", name, "datatype", comment, last_value, nodata_problem_seconds, nodata_is_problem, true AS found FROM public.datapoint WHERE id = $1`
|
||||
param = id
|
||||
dp.ID = id
|
||||
} else {
|
||||
query = `SELECT *, true AS found FROM datapoint WHERE name = $1`
|
||||
query = `SELECT id, "group", name, "datatype", comment, last_value, nodata_problem_seconds, nodata_is_problem, true AS found FROM public.datapoint WHERE name = $1`
|
||||
param = name
|
||||
}
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -29,7 +29,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
const VERSION = "v38"
|
||||
const VERSION = "v39"
|
||||
|
||||
var (
|
||||
logger *slog.Logger
|
||||
|
|
Loading…
Add table
Reference in a new issue