mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Fixed #398 - downloaded data - unable to distinguish between occupancy of null vs. occupancy of zero
This commit is contained in:
parent
8aa608c86a
commit
6ebe758561
@ -1159,7 +1159,7 @@ class runtime extends cora\api {
|
||||
}
|
||||
|
||||
$csv_row[] = $runtime_sensors_by_timestamp[$current_timestamp][$sensor['sensor_id']]['temperature'];
|
||||
$csv_row[] = $runtime_sensors_by_timestamp[$current_timestamp][$sensor['sensor_id']]['occupancy'];
|
||||
$csv_row[] = ($runtime_sensors_by_timestamp[$current_timestamp][$sensor['sensor_id']]['occupancy'] === true ? '1' : '0');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user