summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 7688136..6ecba60 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1358,7 +1358,7 @@ sub startup {
}
my $route = $in_transit->{route};
- my $train_id = $in_transit->{train_id};
+ my $train_id = $train->id;
# TODO get_tripid_p is only needed on the first call, afterwards the tripid is known.
$self->hafas->get_tripid_p( train => $train )->then(