summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-09 18:38:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-09 18:38:50 +0100
commit0cbfcf55948c1ec953a39942b47a1b60a276d572 (patch)
tree30f3bcef34246e854630f4f58e06ccd8bb7fb243 /lib
parentd0891186b6e2d5baf7141c2ce0ecdfdc246097b2 (diff)
Re-add train attributes4.14.7
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm19
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 145a5e3..59b7748 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -809,24 +809,7 @@ sub render_train {
}
)->wait;
- # currently useless due to lack of Open Data
- if ( 0 and $self->param('detailed') ) {
- my $cycle_req = Mojo::Promise->new;
- push( @requests, $cycle_req );
- $self->wagonorder->has_cycle_p( $result->train_no )->then(
- sub {
- $departure->{has_cycle} = 1;
- }
- )->catch(
- sub {
- # nop
- }
- )->finally(
- sub {
- $cycle_req->resolve;
- return;
- }
- )->wait;
+ if ( $self->param('detailed') ) {
$departure->{composition}
= $self->app->train_details_db->{ $departure->{train_no} };
my @cycle_from;