mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Little Fixes
This commit is contained in:
1 parent
14a33b83d0
commit
d013788249
2 files changed
+9
-6
No files matched your search
@@ -8,11 +8,13 @@ class RoomManager{
|
||||
}
|
||||
|
||||
static function getAllRooms () {
|
||||
//TODO: ignore Widgets withoud data
|
||||
$allRoom = Db::loadAll ("SELECT rooms.*, COUNT(devices.device_id) as device_count FROM rooms LEFT JOIN devices ON (devices.room_id=rooms.room_id) GROUP BY rooms.room_id");
|
||||
return $allRoom;
|
||||
}
|
||||
|
||||
static function getRoomsDefault () {
|
||||
//TODO: ignore Widgets withoud data
|
||||
$allRoom = Db::loadAll ("SELECT rooms.room_id, rooms.name, COUNT(devices.device_id) as device_count FROM rooms LEFT JOIN devices ON (devices.room_id=rooms.room_id) GROUP BY rooms.room_id;");
|
||||
return $allRoom;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user