history map: Do not show route for manually added journeys

This commit is contained in:
Daniel Friesel 2019-11-16 23:46:45 +01:00
parent cea4b71ca3
commit e0187c5308

View file

@ -437,7 +437,7 @@ sub map_history {
my $from_index = first_index { $_ eq $journey->{from_name} } @route; my $from_index = first_index { $_ eq $journey->{from_name} } @route;
my $to_index = first_index { $_ eq $journey->{to_name} } @route; my $to_index = first_index { $_ eq $journey->{to_name} } @route;
if ( $from_index == -1 or $to_index == -1 ) { if ( $from_index == -1 or $to_index == -1 or $journey->{edited} == 0x3fff ) {
next; next;
} }