Unverified Commit a76b0e41 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

dbris-m: journey: show trip no if train no is not available

parent 72143bb5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 ) {