summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-17 23:10:07 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-17 23:10:07 +0200
commitc4813001065664d3d09308f7171ac2278d787826 (patch)
tree0ebd2d1a8d6d4ac02e9cb6e596781daa94ef05be
parent298b099097ec9591022142a73198288476c567fd (diff)
backend selection: Hide Resrobot and TPG2.8.26
These backends do not provide trip/journey details, making them useless for travelynx
-rw-r--r--lib/Travelynx/Controller/Account.pm4
1 files changed, 4 insertions, 0 deletions
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