summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-05 22:25:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-05 22:25:35 +0100
commit228476067c3bb9d0e5c029ae745dd615881eaec5 (patch)
treedad851ffdefa711efb21b383d9b43e6e7909bec8 /bin
parentba6a8d18d3ff347fa46e6e06f73937419e961e2d (diff)
destinations: Show sections for each destination
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-wagenreihung7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/db-wagenreihung b/bin/db-wagenreihung
index 8884547..3f8e77c 100755
--- a/bin/db-wagenreihung
+++ b/bin/db-wagenreihung
@@ -74,7 +74,12 @@ printf(
"%s: %s → %s (%s)\n%s Gleis %s\n\n",
join( ' / ', map { $wr->train_type . ' ' . $_ } $wr->train_numbers ),
join( ' / ', $wr->origins ),
- join( ' / ', $wr->destinations ),
+ join(
+ ' / ',
+ map {
+ sprintf( '%s (%s)', $_->{name}, join( q{}, @{ $_->{sections} } ) )
+ } $wr->destinations
+ ),
$wr->train_subtype // 'IC?',
$wr->station_name,
$wr->platform