From d47195a0cf30a64ca7afcbbeed6edb6b54039104 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 27 Dec 2023 10:59:35 +0100 Subject: Switch to Travel::Status::DE::HAFAS 5.x --- lib/Travelynx/Command/work.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Travelynx/Command') diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 09649a3..a02618b 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -46,10 +46,10 @@ sub run { my $found_dep; my $found_arr; for my $stop ( $journey->route ) { - if ( $stop->eva == $dep ) { + if ( $stop->loc->eva == $dep ) { $found_dep = $stop; } - if ( $arr and $stop->eva == $arr ) { + if ( $arr and $stop->loc->eva == $arr ) { $found_arr = $stop; last; } -- cgit v1.2.3