X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/4a4b3aa7ac2582e9131176d9361f30502e8a80b7..175ee00ad5fe1db247a779b059276c0b79258370:/Command/WeatherCommand.php diff --git a/Command/WeatherCommand.php b/Command/WeatherCommand.php index b499390..0318383 100644 --- a/Command/WeatherCommand.php +++ b/Command/WeatherCommand.php @@ -177,6 +177,12 @@ class WeatherCommand extends DoctrineCommand { //Set stop day $day = $stop->diff((new \DateTime('now'))->setTime(0, 0, 0))->d + 1; + //Skip 4th day + //XXX: accuweather only allow until 3rd day + if ($day >= 4) { + continue; + } + //Check if zipcode date is set if (!isset($zipcodes[$zipcode][$day])) { $zipcodes[$zipcode][$day] = [ $sessionId => $sessionId ];