summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-06 12:31:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-02-06 12:31:35 +0100
commit9223ba5fa1a3ab203bba1fb54e9d2a5772f0b0d8 (patch)
tree2c586b39843e6dc14deb5f9b753d8e1df3b3f149 /lib/Travelynx.pm
parent5b1841cccefc74b8fa3b523b3a5b5359a9e39c6d (diff)
fall back to apps-bahn if ist-wr does not know about a train1.19.5
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index ac3ae8d..882aab6 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1242,7 +1242,8 @@ sub startup {
$self->dbdb->has_wagonorder_p( $train->sched_departure,
$train->train_no )->then(
sub {
- return $self->dbdb->get_wagonorder_p(
+ my ($api) = @_;
+ return $self->dbdb->get_wagonorder_p( $api,
$train->sched_departure, $train->train_no );
}
)->then(