From 8180aad8438800056fb4baeedde12120f8bd90c6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 27 Mar 2021 07:40:57 +0100 Subject: city is entirely optional now --- index.pl | 3 --- templates/main.html.ep | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/index.pl b/index.pl index 6dcee58..6bd4844 100644 --- a/index.pl +++ b/index.pl @@ -130,9 +130,6 @@ sub get_results { } else { my $efa_url = 'http://efa.vrr.de/vrr/XSLT_DM_REQUEST'; - if ( not $city ) { - return { errstr => 'City must be specified for this backend' }; - } if ($sub_backend) { my $service = first { lc( $_->{shortname} ) eq lc($sub_backend) } diff --git a/templates/main.html.ep b/templates/main.html.ep index 496ef96..c44ac83 100644 --- a/templates/main.html.ep +++ b/templates/main.html.ep @@ -105,7 +105,7 @@ und wird derzeit nicht aktiv gepflegt oder weiterentwickelt. Alle Angaben ohne G %= form_for _redirect => begin
-
Stadt (Pflichtfeld für EFA-Backends, sonst optional)
+
Stadt (optional, kann auch Teil der Haltestelle sein)
% if (stash('place_candidates') and @{ stash('place_candidates') } ) { % my @candidates = map { [ $_, $_ ] } @{ stash('place_candidates') }; -- cgit v1.2.3