Skip to content

Commit

Permalink
update route_interesting for yesterday's changes
Browse files Browse the repository at this point in the history
(partially still FIXME cause of encapsulation issues)
  • Loading branch information
derf committed Jun 25, 2015
1 parent 9ca81ce commit 2cc7db6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Travel/Status/DE/EFA/Result.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ sub route_interesting {

for my $stop (@via) {
if (
$stop->{stop_suf} =~ m{ Bf | Hbf | Flughafen | Hauptbahnhof
$stop->name_suf =~ m{ Bf | Hbf | Flughafen | Hauptbahnhof
| Krankenhaus | Klinik | (?: S $ ) }ox
)
{
Expand Down Expand Up @@ -85,9 +85,10 @@ sub route_interesting {

while ( @via_show < $max_parts and @via_main ) {
my $stop = shift(@via_main);
if ( $stop ~~ \@via_show or $stop == $last_stop ) {
next;
}
# FIXME cannot smartmatch $stop since it became an object
# if ( $stop ~~ \@via_show or $stop == $last_stop ) {
# next;
# }
push( @via_show, $stop );
}
}
Expand Down

0 comments on commit 2cc7db6

Please sign in to comment.