From 57b71f50d8113c53ef113bce4005e77d823ce629 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 21 Dec 2020 09:00:13 +0100 Subject: rename conditions to schedules --- bin/db-wagenreihung-to-json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/db-wagenreihung-to-json b/bin/db-wagenreihung-to-json index 2550fd4..339124d 100755 --- a/bin/db-wagenreihung-to-json +++ b/bin/db-wagenreihung-to-json @@ -362,9 +362,9 @@ for my $line (@lines) { $map{$number}{route} .= $+{route}; } elsif ( $state eq "route" and $line eq "" ) { - $state = "conditions"; + $state = "schedules"; } - elsif ( $state eq "conditions" and $line =~ m{ Hg | Tfz | BrH }x ) { + elsif ( $state eq "schedules" and $line =~ m{ Hg | Tfz | BrH }x ) { $state = "details"; } @@ -387,8 +387,8 @@ for my $line (@lines) { $map{$number}{has_wagon}{$wagon_type} = \1; } - if ( $state eq "conditions" and length($line) and $line =~ m{ \S }x ) { - push( @{ $map{$number}{conditions} }, parse_condition($line) ); + if ( $state eq "schedules" and length($line) and $line =~ m{ \S }x ) { + push( @{ $map{$number}{schedules} }, parse_condition($line) ); } if ( $state eq "details" -- cgit v1.2.3