Browse Source

Maybe filter out Error Values

pull/1/head
GamerClassN7 1 year ago
parent
commit
52688a5e70
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/models/managers/SubDeviceManager.php

+ 1
- 0
app/models/managers/SubDeviceManager.php 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

Loading…
Cancel
Save