summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-21 09:40:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-21 09:40:51 +0100
commitfda067b9d3f1762136ef756da2a337651da2eb9a (patch)
treea8d065a4ccccac1775746a5c7749ddfd61a3718d /bin
parent57b71f50d8113c53ef113bce4005e77d823ce629 (diff)
set type back to raw if unknown / unreliable
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-wagenreihung-to-json2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/db-wagenreihung-to-json b/bin/db-wagenreihung-to-json
index 339124d..8ed2289 100755
--- a/bin/db-wagenreihung-to-json
+++ b/bin/db-wagenreihung-to-json
@@ -549,7 +549,7 @@ for my $train_number ( keys %map ) {
# train type may differ depending on date of week or similar. We don't
# parse/handle that yet.
- delete $map{$train_number}{type};
+ $map{$train_number}{type} = $map{$train_number}{raw};
delete $map{$train_number}{short};
delete $map{$train_number}{wagons};
delete $map{$train_number}{has_wagon};