mirror of
https://github.com/beestat/app.git
synced 2026-05-20 14:22:48 -04:00
Fixed #128 Division by zero error when generating temperature profiles
Was not excluding inactive thermostats which caused a count to be 0 which caused a number to be divided by 0.
This commit is contained in:
@@ -56,7 +56,8 @@ class thermostat_group extends cora\crud {
|
||||
'read',
|
||||
[
|
||||
'attributes' => [
|
||||
'thermostat_group_id' => $thermostat_group_id
|
||||
'thermostat_group_id' => $thermostat_group_id,
|
||||
'inactive' => 0
|
||||
]
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user