summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS/Result.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-18 11:10:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-18 11:10:10 +0200
commit79ce658690f95bad7b268958e2cf7c979b7b7f0f (patch)
treef1d565f3a64c03957981a840d99b663b3d25e201 /lib/Travel/Status/DE/IRIS/Result.pm
parenta39fac42c9e560ed904eb98108f69326caca2c22 (diff)
Result: Cancellations are realtime data as well
Diffstat (limited to 'lib/Travel/Status/DE/IRIS/Result.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm
index e7de4dd..7876b39 100644
--- a/lib/Travel/Status/DE/IRIS/Result.pm
+++ b/lib/Travel/Status/DE/IRIS/Result.pm
@@ -267,6 +267,7 @@ sub set_ar {
my ( $self, %attrib ) = @_;
if ( $attrib{status} and $attrib{status} eq 'c' ) {
+ $self->{has_realtime} = $self->{arrival_has_realtime} = 1;
$self->{arrival_is_cancelled} = 1;
}
elsif ( $attrib{status} and $attrib{status} eq 'a' ) {
@@ -331,6 +332,7 @@ sub set_dp {
my ( $self, %attrib ) = @_;
if ( $attrib{status} and $attrib{status} eq 'c' ) {
+ $self->{has_realtime} = $self->{arrival_has_realtime} = 1;
$self->{departure_is_cancelled} = 1;
}
elsif ( $attrib{status} and $attrib{status} eq 'a' ) {