From 35338125bcf5c503ec57b857ed2d11c547eca4ab Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Jul 2022 13:19:29 +0200 Subject: departure board: move get_connecting_trains call to controller this is in preparation for turning it into a promise --- templates/departures.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 220d951..3ef081b 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -40,7 +40,7 @@ % } -% elsif (not param('train') and my @connections = get_connecting_trains(eva => $eva)) { +% elsif (not param('train') and my @connections = @{stash('connections') // []}) { % $have_connections = 1;
-- cgit v1.2.3