diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-11-15 21:27:08 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-11-15 21:27:08 +0100 |
| commit | e94bed9186dc0636567604056edef7e0af7bb29c (patch) | |
| tree | cac608878dd0ff34076d4c33e12560ad94b38fb6 /bin | |
| parent | 5f42920c86ec1cf51eccd8970757909308fd7617 (diff) | |
Expose operator names (if available), fall back to admin IDs otherwise
See #10
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/dbris-m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index 975100c..db6cf8c 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -394,8 +394,8 @@ elsif ( $opt{journey} and not( $raw_json_output or $json_output ) ) { $trip->train_no // $trip->number, $trip->day->strftime('%d.%m.%Y') ); - if ( $trip->admin_ids ) { - printf( "Betrieb: %s\n", join( q{, }, $trip->admin_ids ) ); + if ( $trip->operators ) { + printf( "Betrieb: %s\n", join( q{, }, $trip->operators ) ); } say q{}; |
