Skip to content

Commit

Permalink
set meios -99 when no data
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahock committed Jul 8, 2024
1 parent 2851088 commit 04e5e89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Jobs/ProcessICNFNewFireData.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function handle()
$distrito = UTF8::ucwords(mb_strtolower($d->DISTRITO->__toString()));
$concelho = UTF8::ucwords(mb_strtolower($d->CONCELHO->__toString()));
$freguesia = UTF8::ucwords(mb_strtolower($d->FREGUESIA->__toString()));
$localidade = UTF8::ucwords(mb_strtolower($d->LOCAL->__toString()));
$localidade = UTF8::ucwords(mb_strtolower($d->LOCAL->__toString())) . ' -> Número de meios -99. Sem informação disponivel de momento.';

$point = [
'id' => $id,
Expand All @@ -75,10 +75,10 @@ public function handle()
'date' => $date->format('d-m-Y'),
'hour' => $date->format('H:i'),
'location' => $distrito.', '.$concelho.', '.$freguesia,
'aerial' => 0,
'terrain' => 0,
'meios_aquaticos' => 0,
'man' => 0,
'aerial' => -99,
'terrain' => -99,
'meios_aquaticos' => -99,
'man' => -99,
'district' => $distrito,
'concelho' => UTF8::ucwords(mb_strtolower($concelho)),
'dico' => $d->INE->__toString(),
Expand Down

0 comments on commit 04e5e89

Please sign in to comment.