diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-26 14:00:54 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-26 14:00:54 +0100 |
commit | 7caeab689baf8390e12915264838c1a0da73e2ef (patch) | |
tree | 884111720493adeb6e030658ecb999364186775e /bin | |
parent | 0c91406149c1ed3180bac678d679dc5ccb2140e5 (diff) |
journey: parse trip day and attributes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dbris-m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index 2049f2d..bf75a29 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -211,8 +211,7 @@ elsif ( $opt{journey} ) { } } - say $trip->train; - say q{}; + printf( "%s am %s\n\n", $trip->train, $trip->day->strftime('%d.%m.%Y') ); for my $stop ( $trip->route ) { if ( $stop == $mark_stop ) { @@ -242,6 +241,12 @@ elsif ( $opt{journey} ) { print($output_reset); } } + if ( $trip->attributes ) { + say q{}; + } + for my $attr ( $trip->attributes ) { + say $attr->{value}; + } if ( $trip->messages ) { say q{}; } |