diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-11-16 16:03:03 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-11-16 16:03:03 +0100 |
commit | 4f2eac9cefd40028916ed5ca1953c2ff566b0b18 (patch) | |
tree | 1fcb02131046416de3184527949bf96d27346f02 /lib/Travelynx/Controller/Traveling.pm | |
parent | 733fe2d853cc2aa4f759d2454171e17409551dfb (diff) |
map_history: uniq_by_route did not consider the actual passenger route, scrap it
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 0735512..310c8bc 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -427,13 +427,9 @@ sub map_history { my @station_coordinates = map { [ $location->{$_}, $_ ] } grep { exists $location->{$_} } @stations; - my @uniq_by_route = uniq_by { - join( '|', map { $_->[0] } @{ $_->{route} } ) - } - @journeys; my @station_pairs; - for my $journey (@uniq_by_route) { + for my $journey (@journeys) { my @route = map { $_->[0] } @{ $journey->{route} }; my $prev_station = shift @route; my $within = 0; |