summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-22 10:30:37 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-22 10:30:37 +0100
commitdf159ac2f6eaeb93d035abb0983ae6e0ad5e9e47 (patch)
treea6cd9d62e99d451ef6efb2302315f9d5c3774558
parent92a1b9d359a36aad03d769fd0c7311a9700eb9b4 (diff)
attr: series2 is a string
-rwxr-xr-xbin/db-zugbildung-to-json2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/db-zugbildung-to-json b/bin/db-zugbildung-to-json
index a98af93..d6bd897 100755
--- a/bin/db-zugbildung-to-json
+++ b/bin/db-zugbildung-to-json
@@ -600,7 +600,7 @@ for my $train ( values %map ) {
for my $key (qw(brakingPercentage length series series2 vmax)) {
if ( ( my @uniq = uniq grep { $_ } map { $_->{$key} } @setups ) == 1 ) {
- $common_setup{$key} = $key eq 'series' ? $uniq[0] : 0 + $uniq[0];
+ $common_setup{$key} = $key =~ m{series} ? $uniq[0] : 0 + $uniq[0];
}
}