1
0
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:
Jon Ziebell 2019-06-17 22:48:45 -04:00
parent ed62657e54
commit 431df7e932

View File

@ -56,7 +56,8 @@ class thermostat_group extends cora\crud {
'read', 'read',
[ [
'attributes' => [ 'attributes' => [
'thermostat_group_id' => $thermostat_group_id 'thermostat_group_id' => $thermostat_group_id,
'inactive' => 0
] ]
] ]
); );