Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb46058
)
Add skip on weather unavailable data when startup timeout makes us miss upstream...
author
Raphaël Gertz
<git@rapsys.eu>
Mon, 16 Aug 2021 23:01:59 +0000
(
01:01
+0200)
committer
Raphaël Gertz
<git@rapsys.eu>
Mon, 16 Aug 2021 23:01:59 +0000
(
01:01
+0200)
Command/WeatherCommand.php
patch
|
blob
|
history
diff --git
a/Command/WeatherCommand.php
b/Command/WeatherCommand.php
index 4b3ea402962ac1e3db318f185cd49cbf68f8a385..c2aae61dc4451ffcb5a8e0e3b1411745bd40168d 100644
(file)
--- a/
Command/WeatherCommand.php
+++ b/
Command/WeatherCommand.php
@@
-343,11
+343,11
@@
class WeatherCommand extends DoctrineCommand {
$hour = $type=='daily'?$type:$time->format('H');
//Check data availability
- //XXX: s
hould never happen
-
#
if (!isset($data[$zipcode][$dsm][$hour])) {
-
#
//Skip unavailable data
-
#
continue;
-
#
}
+ //XXX: s
ometimes startup delay causes weather data to be unavailable for session first hour
+ if (!isset($data[$zipcode][$dsm][$hour])) {
+
//Skip unavailable data
+
continue;
+ }
//Set info alias
$info = $data[$zipcode][$dsm][$hour];