summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-21 09:00:13 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-21 09:00:13 +0100
commit57b71f50d8113c53ef113bce4005e77d823ce629 (patch)
treec009ec52cef1bd8ece3ad7ad85b7b165a2696e44
parent4eb59923486b8ee9f4d253315db9d0ff4c9668bd (diff)
rename conditions to schedules
-rwxr-xr-xbin/db-wagenreihung-to-json8
1 files 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"