summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-04-25 22:13:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-04-25 22:13:17 +0200
commit4a74fe254037d155883e5397c60aad34fe847292 (patch)
treecadc48779a92f8fcf4c7665168f806c210b7f3af /lib/Travel/Status/DE/IRIS.pm
parent8327f304bee2f8c0d5d195cde72a241503cf1c98 (diff)
add is_unscheduled accessor
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 28441e4..95194ff 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -29,7 +29,7 @@ sub new {
datetime => $opt{datetime}
// DateTime->now( time_zone => 'Europe/Berlin' ),
developer_mode => $opt{developer_mode},
- iris_base => $opt{iris_base}
+ iris_base => $opt{iris_base}
// 'http://iris.noncd.db.de/iris-tts/timetable',
lookahead => $opt{lookahead} // ( 4 * 60 ),
serializable => $opt{serializable},
@@ -231,6 +231,9 @@ sub get_realtime {
if ( not $result ) {
$result = $self->add_result( $station, $s );
+ if ($result) {
+ $result->set_unscheduled(1);
+ }
}
if ( not $result ) {
next;