Maybe filter out Error Values

This commit is contained in:
GamerClassN7 2020-11-18 22:09:02 +01:00
parent 3181c9dc72
commit 52688a5e70

View File

@ -81,6 +81,7 @@ class SubDeviceManager
JOIN devices d ON sd.device_id = d.device_id
JOIN records r ON r.subdevice_id = sd.subdevice_id
WHERE d.room_id IN (".str_repeat("?,", count($roomIds)-1)."?)
/*AND value != '999'*/
AND r.record_id IN (
SELECT MAX(record_id)
FROM records