diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-27 14:35:30 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-27 14:35:30 +0100 |
| commit | 831e851f840588e1401ab92c43175decd0195f5a (patch) | |
| tree | f7135aef779d24d08132e39cce7c94c6b664ae31 /lib/Travelynx/Model | |
| parent | 43c191fc9435a11f4349be86fe6844354f5bbca0 (diff) | |
EFA: show connections while checked in
implemented via background worker; connections are only checked <15 minutes
before arrival
Diffstat (limited to 'lib/Travelynx/Model')
| -rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index f532b8b..744e7ae 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -2108,6 +2108,7 @@ sub get_connection_targets { my $min_count = $opt{min_count} // 3; my $backend_id = $opt{backend_id}; my $dest_id = $opt{eva}; + my $exclude_id = $opt{exclude}; $self->{log}->debug( "get_connection_targets(uid => $uid, backend_id => $backend_id, dest_id => $dest_id)" @@ -2163,6 +2164,9 @@ sub get_connection_targets { backend_id => $opt{backend_id}, evas => [@destinations] ); + if ( defined $exclude_id ) { + @destinations = grep { $_->{eva} != $exclude_id } @destinations; + } return @destinations; } |
