mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -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:
parent
ed62657e54
commit
431df7e932
@ -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
|
||||
]
|
||||
]
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user