summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-19 13:26:48 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-19 13:26:48 +0200
commit4f0d789e19187b75ca03c6b17eee84aece2e1f47 (patch)
treed41a535128c8ca94384869bd133da8b0665b41b9
parentb5c6baf084efd29e1cd5f9328a085258bbd839d4 (diff)
index: less confusing list for ambiguous names
-rw-r--r--index.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.pl b/index.pl
index a4dea51..7a1fec7 100644
--- a/index.pl
+++ b/index.pl
@@ -276,7 +276,7 @@ sub handle_request {
input => $station,
);
my @candidates
- = map { [ "$_->{name} ($_->{id})", $_->{id} ] } $sf->results;
+ = map { [ $_->{name}, $_->{id} ] } $sf->results;
if ( @candidates > 1
or ( @candidates == 1 and $candidates[0][1] ne $station ) )
{
@@ -289,7 +289,7 @@ sub handle_request {
}
}
if ( $backend eq 'iris' ) {
- my @candidates = map { [ "$_->[1] ($_->[0])", $_->[0] ] }
+ my @candidates = map { [ $_->[1], $_->[0] ] }
Travel::Status::DE::IRIS::Stations::get_station($station);
if ( @candidates > 1
or ( @candidates == 1 and $candidates[0][1] ne $station ) )