Fixed nodata problem on datapoints not using it

This commit is contained in:
Magnus Åhall 2024-05-28 06:57:07 +02:00
parent 3af2cd4d17
commit 2f95c732b6

View File

@ -105,6 +105,7 @@ func nodataDatapoints() (datapoints []Datapoint, err error) {
FROM
datapoint
WHERE
nodata_problem_seconds > 0 AND
NOT nodata_is_problem AND
extract(EPOCH from (NOW() - last_value))::int > nodata_problem_seconds
) AS subquery