diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-25 19:09:07 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-25 19:09:07 +0200 |
commit | b9cda07f85601a58ea32dbdacdd5399f302db52b (patch) | |
tree | 71f05bf8e957a29c9d3eae253ca047ad05301523 /lib/Travelynx/Model | |
parent | 2759d7258c37c7498905cfe19f6b4c4f6d16bd21 (diff) |
fix remaining get_connection_targets / get_connecting_trains_p invocations
Diffstat (limited to 'lib/Travelynx/Model')
-rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index e66e370..e309d37 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -837,7 +837,10 @@ sub get_latest_checkout_stations { my $res = $db->select( 'journeys_str', - [ 'arr_name', 'arr_eva', 'train_id', 'backend_id', 'backend_name', 'is_hafas' ], + [ + 'arr_name', 'arr_eva', 'train_id', 'backend_id', + 'backend_name', 'is_hafas' + ], { user_id => $uid, cancelled => 0 @@ -858,9 +861,9 @@ sub get_latest_checkout_stations { push( @ret, { - name => $row->{arr_name}, - eva => $row->{arr_eva}, - hafas => $row->{is_hafas} ? $row->{backend_name} : 0, + name => $row->{arr_name}, + eva => $row->{arr_eva}, + hafas => $row->{is_hafas} ? $row->{backend_name} : 0, backend_id => $row->{backend_id}, } ); @@ -1807,7 +1810,7 @@ sub get_connection_targets { backend_id => $opt{backend_id}, evas => [@destinations] ); - return \@destinations; + return @destinations; } sub update_visibility { |