From b0a9973139fe13cecc14185b6c07262c4c114fc7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 17 Sep 2017 15:10:32 +0200 Subject: Add API and CLI output for cancelled route parts (delay -9999) --- bin/efa | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/efa b/bin/efa index 36ee898..44fa754 100755 --- a/bin/efa +++ b/bin/efa @@ -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 ); } -- cgit v1.2.3