mirror of
https://github.com/beestat/app.git
synced 2025-05-31 20:26:32 -04:00
Fixed profiles not generating if you have inactive thermostats
Affects cron job only
This commit is contained in:
parent
7b7a5e9d88
commit
1d0f7218bd
@ -223,7 +223,9 @@ class thermostat extends cora\crud {
|
|||||||
* the cron job.
|
* the cron job.
|
||||||
*/
|
*/
|
||||||
public function generate_profiles() {
|
public function generate_profiles() {
|
||||||
$thermostats = $this->read();
|
$thermostats = $this->read([
|
||||||
|
'inactive' => 0
|
||||||
|
]);
|
||||||
foreach($thermostats as $thermostat) {
|
foreach($thermostats as $thermostat) {
|
||||||
$this->generate_profile(
|
$this->generate_profile(
|
||||||
$thermostat['thermostat_id']
|
$thermostat['thermostat_id']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user