diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-19 00:01:45 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-19 00:01:45 +0100 |
commit | 5075461af23c7016f045450808b4302d4109934f (patch) | |
tree | 1574bbfa47f69e7cc3a1e1c6738d225700653acc /bin | |
parent | bfdedd4d6a737a5aaa59aada43fdb24576745f5c (diff) |
expose connection price offers
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dbris | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -219,13 +219,15 @@ for my $connection ( $ris->connections ) { say q{}; printf( - "%s (%02d:%02d) %s %s%s\n\n", - $connection->dep - ? $connection->dep->strftime('%d.%m. %H:%M') + "%s (%02d:%02d) %s %s%s%s\n\n", + $connection->dep ? $connection->dep->strftime('%d.%m. %H:%M') : q{??.??. ??:??}, $connection->duration->in_units( 'hours', 'minutes' ), $connection->arr ? $connection->arr->strftime('%H:%M') : q{??:??}, format_occupancy($connection), + defined $connection->price + ? sprintf( ' %s %s', $connection->price, $connection->price_unit ) + : q{}, $header, ); for my $segment ( $connection->segments ) { |