This commit is contained in:
Birte Kristina Friesel 2023-09-04 17:08:17 +02:00
parent d4b3dcaf06
commit b410176e63
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 6 additions and 9 deletions

View file

@ -55,7 +55,8 @@ sub run {
}
}
if ( not $found_dep ) {
$self->app->log->debug("Did not find $dep within journey $train_id");
$self->app->log->debug(
"Did not find $dep within journey $train_id");
return;
}

View file

@ -192,27 +192,23 @@ sub route_diff {
# this branch is inefficient, but won't be taken frequently
elsif ( not( grep { $_ eq $route[$route_idx] } @sched_route ) ) {
push( @json_route,
[ $route[$route_idx], undef, { isAdditional => 1 } ],
);
[ $route[$route_idx], undef, { isAdditional => 1 } ], );
$route_idx++;
}
else {
push( @json_route,
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ],
);
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], );
$sched_idx++;
}
}
while ( $route_idx <= $#route ) {
push( @json_route,
[ $route[$route_idx], undef, { isAdditional => 1 } ],
);
[ $route[$route_idx], undef, { isAdditional => 1 } ], );
$route_idx++;
}
while ( $sched_idx <= $#sched_route ) {
push( @json_route,
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ],
);
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], );
$sched_idx++;
}
return @json_route;