Skip to content

Commit

Permalink
Ignore values from uba-api when they are zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
maltehuebner committed Dec 28, 2019
1 parent cbad446 commit 1099148
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -29,6 +29,10 @@ public function parse(array $response, int $pollutant): array
foreach ($response['data'] as $stationId => $dataSet) {
$data = array_pop($dataSet);

if ($data[2] <= 0) {
continue;
}

if (!array_key_exists($stationId, $this->stationList)) {
continue;
}
Expand Down

0 comments on commit 1099148

Please sign in to comment.