summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-06-23 16:27:54 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-06-23 16:27:54 +0200
commit9e3d0acf932c95c345955cc97cc544249c2051d0 (patch)
tree4a0ad157c5991ccdd0fb5c246c12adfdb7dc1f93 /lib
parent1db4f4cd432afac46b3526022bccb7ac6ba82920 (diff)
IRIS: Use EVA ID rather than DS100 code for backend requests2.7.4
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Helper/IRIS.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Helper/IRIS.pm b/lib/Travelynx/Helper/IRIS.pm
index deed79a..f96aeb6 100644
--- a/lib/Travelynx/Helper/IRIS.pm
+++ b/lib/Travelynx/Helper/IRIS.pm
@@ -42,7 +42,7 @@ sub get_departures {
= Travel::Status::DE::IRIS::Stations::get_station($station);
if ( @station_matches == 1 ) {
- $station = $station_matches[0][0];
+ $station = $station_matches[0][2];
my $status = Travel::Status::DE::IRIS->new(
station => $station,
main_cache => $self->{main_cache},
@@ -109,7 +109,7 @@ sub get_departures_p {
= Travel::Status::DE::IRIS::Stations::get_station($station);
if ( @station_matches == 1 ) {
- $station = $station_matches[0][0];
+ $station = $station_matches[0][2];
my $promise = Mojo::Promise->new;
Travel::Status::DE::IRIS->new_p(
station => $station,