Commit 29777154 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Stations: Fix get_station_by_location num_matches parameter

parent f5aae38e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8519,7 +8519,7 @@ sub get_station_by_location {
	my @station_map = pairwise { [ $a, $b ] } @candidates, @distances;
	@station_map = sort { $a->[1] <=> $b->[1] } @station_map;
	splice( @station_map, 10 );
	splice( @station_map, $num_matches );
	return @station_map;
}
+1 −1
Original line number Diff line number Diff line
@@ -1891,7 +1891,7 @@ sub get_station_by_location {
	my @station_map = pairwise { [ $a, $b ] } @candidates, @distances;

	@station_map = sort { $a->[1] <=> $b->[1] } @station_map;
	splice( @station_map, 10 );
	splice( @station_map, $num_matches );

	return @station_map;
}