summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-27 10:49:48 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-27 10:49:48 +0200
commit80139a3a3166ee8cd8bfbed4f67e1bdca03cfa81 (patch)
tree3cd1464d6832a0d539389c80c9c464df2fa0f924 /bin
parent5859764fbf3b2bb63edc1d4cbb1a501441ea33f3 (diff)
Make origins return a list of hashrefs, just like destinations
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 87b5223..291cc9f 100755
--- a/bin/db-wagenreihung
+++ b/bin/db-wagenreihung
@@ -73,7 +73,12 @@ my $wr = Travel::Status::DE::DBWagenreihung->new(
printf(
"%s: %s → %s\n",
join( ' / ', map { $wr->train_type . ' ' . $_ } $wr->train_numbers ),
- join( ' / ', $wr->origins ),
+ join(
+ ' / ',
+ map {
+ sprintf( '%s (%s)', $_->{name}, join( q{}, @{ $_->{sections} } ) )
+ } $wr->origins
+ ),
join(
' / ',
map {