summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-12 22:46:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-12 22:46:07 +0100
commitd768ba93d4d78747709fbbb432130bd2bd9e454e (patch)
tree6a70383f9abd11138d32785849322fea106d08c5
parent87667f39ba001dd4b21b369e9fcb9a2bdda38501 (diff)
fix IC-D/IC-E fixup
-rwxr-xr-xbin/db-zugbildung-to-json3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/db-zugbildung-to-json b/bin/db-zugbildung-to-json
index a19ecbd..3010ad9 100755
--- a/bin/db-zugbildung-to-json
+++ b/bin/db-zugbildung-to-json
@@ -449,7 +449,8 @@ for my $line (@lines) {
}
}
elsif ( $number and $line =~ m{^\d*\s+[AB][pv]m} ) {
- if ( $map{$number}{type} eq 'IC2' or $map{$number}{type} eq 'IC2 KISS' )
+ if ( $map{$number}{type} eq 'IC2 Twindexx'
+ or $map{$number}{type} eq 'IC2 KISS' )
{
# Zugbildungsplan go home, you're drunk. Wagons of IC2 double decker
# trains must start with D (indicating that they double decker