From a76b0e414138263b1e4cb16ee93f5b27dcc766f2 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 14 Sep 2025 21:24:04 +0200 Subject: dbris-m: journey: show trip no if train no is not available --- bin/dbris-m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { -- cgit v1.2.3