diff options
| -rwxr-xr-x | bin/dbris-m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index dc3aedc..d219403 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -388,7 +388,9 @@ elsif ( $opt{journey} and not( $raw_json_output or $json_output ) ) { } printf( "%s %s am %s\n\n", - $trip->type, $trip->train_no, $trip->day->strftime('%d.%m.%Y') ); + $trip->type, + $trip->train_no // $trip->number, + $trip->day->strftime('%d.%m.%Y') ); for my $stop ( $trip->route ) { if ( $stop == $mark_stop ) { |
