Skip to content
Snippets Groups Projects
Commit d7ec56dd authored by Daniel Friesel's avatar Daniel Friesel
Browse files

avoid train no mixup when adding missing stops to routes

parent 1bab0518
No related branches found
Tags 2.3.4
No related merge requests found
...@@ -936,6 +936,10 @@ sub handle_request { ...@@ -936,6 +936,10 @@ sub handle_request {
@iris_stations @iris_stations
) )
{ {
unshift(
@{ $departures[-1]{route_pre_diff} },
@missing_pre
);
last; last;
} }
push( push(
...@@ -946,10 +950,6 @@ sub handle_request { ...@@ -946,10 +950,6 @@ sub handle_request {
} }
); );
} }
unshift(
@{ $departures[-1]{route_pre_diff} },
@missing_pre
);
} }
if ( my @iris_stations if ( my @iris_stations
= @{ $departures[-1]{route_post_diff} } ) = @{ $departures[-1]{route_post_diff} } )
...@@ -961,6 +961,10 @@ sub handle_request { ...@@ -961,6 +961,10 @@ sub handle_request {
@iris_stations @iris_stations
) )
{ {
push(
@{ $departures[-1]{route_post_diff} },
@missing_post
);
last; last;
} }
unshift( unshift(
...@@ -971,10 +975,6 @@ sub handle_request { ...@@ -971,10 +975,6 @@ sub handle_request {
} }
); );
} }
push(
@{ $departures[-1]{route_post_diff} },
@missing_post
);
} }
} }
if ($route_ts) { if ($route_ts) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment