summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-09-14 21:24:04 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-09-14 21:24:04 +0200
commita76b0e414138263b1e4cb16ee93f5b27dcc766f2 (patch)
tree63725ac5e48547c986131247b6a6feb438776845
parent72143bb51c94eee277e8cdf6430432789b2faaea (diff)
dbris-m: journey: show trip no if train no is not available
-rwxr-xr-xbin/dbris-m4
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 ) {