diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-22 10:30:37 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-22 10:30:37 +0100 |
commit | df159ac2f6eaeb93d035abb0983ae6e0ad5e9e47 (patch) | |
tree | a6cd9d62e99d451ef6efb2302315f9d5c3774558 | |
parent | 92a1b9d359a36aad03d769fd0c7311a9700eb9b4 (diff) |
attr: series2 is a string
-rwxr-xr-x | bin/db-zugbildung-to-json | 2 |
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]; } } |