summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-12-12 10:43:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-12-12 10:43:35 +0100
commite9eec4c5a94376cf16497d5b5ee71c36166c0abf (patch)
tree87867d4991f9e6de3bfef3dc62417bf3f8d80caa
parent4b79ddb0e2e6848b70d9d37fd1a977264414b3c8 (diff)
Use EVA ID for IRIS requests
They change less frequently than DS100 codes Closes #11
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 7757159..361413d 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -218,7 +218,7 @@ sub get_results_for {
my @station_matches
= 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 => $opt{cache_iris_main},