diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-09-17 15:10:32 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-09-17 15:10:32 +0200 |
commit | b0a9973139fe13cecc14185b6c07262c4c114fc7 (patch) | |
tree | 1fbcc18ab4254df105ff199ae253e85053940e0e /bin | |
parent | db888ca1ca3131578bc15b5b829021c07287164f (diff) |
Add API and CLI output for cancelled route parts (delay -9999)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -214,7 +214,10 @@ sub display_routes { sub display_connection { my ($c) = @_; - if ( $c->delay ) { + if ( $c->is_cancelled ) { + say '# FAHRT FĂ„LLT AUS'; + } + elsif ( $c->delay ) { printf( "# +%d, Plan: %s -> %s\n", $c->delay, $c->departure_stime, $c->arrival_stime ); } |