mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 09:45:33 +00:00
Maybe filter out Error Values
This commit is contained in:
1 parent
3181c9dc72
commit
52688a5e70
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user