summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-02-07 17:02:10 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-02-07 17:02:10 +0100
commit4fa1eadda90620981c0c6a2378fa933ef14b7a35 (patch)
tree92b56c13d136eef833ae73949fd4594bb214060c /bin/db-iris
parente10cf4f5a830d9cf7f36555671594a86d89ab069 (diff)
db-iris: fix --via not matching dest of trains with incomplete route data
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-xbin/db-iris3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/db-iris b/bin/db-iris
index 9ef3a60..a824fdd 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -272,7 +272,8 @@ for my $d ( $status->results() ) {
my @via;
- @via = $d->route_post;
+ # route may be incomplete, so check route_end as well
+ @via = ( $d->route_post, $d->route_end );
if ( ( $filter_via and not( first { $_ =~ m{$filter_via}io } @via ) )
or ( @grep_class and none { $_ ~~ \@grep_class } $d->classes )