From c4813001065664d3d09308f7171ac2278d787826 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 17 Aug 2024 23:10:07 +0200 Subject: backend selection: Hide Resrobot and TPG These backends do not provide trip/journey details, making them useless for travelynx --- lib/Travelynx/Controller/Account.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 56730b6..647f616 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -1026,6 +1026,10 @@ sub backend_form { $backend->{type} = $type; } + # These backends lack a journey endpoint and are useless for travelynx + @backends + = grep { $_->{name} ne 'Resrobot' and $_->{name} ne 'TPG' } @backends; + my $iris = shift @backends; @backends -- cgit v1.2.3