summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-04-01 18:05:32 +0200
committerDerf Null <derf@finalrewind.org>2023-04-01 18:05:32 +0200
commit852c7797b0b1d54078d0720a88f59807252e05d8 (patch)
tree4cfcf1474caa72787c5118d29ecab2f8b009ce6a /lib/Travelynx/Command/work.pm
parente4e660e839822137971df72f0eacb672cd4cbd0a (diff)
Update HAFAS polylines prior to checkout1.30.11
In case of diversions, the polyline fetched at checkin time may no longer be accurate. Request a new polyline prior to checkout to address this. Closes #66
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index a4a98e6..115be2e 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -164,7 +164,8 @@ sub run {
);
}
else {
- $self->app->add_route_timestamps( $uid, $train, 0 );
+ $self->app->add_route_timestamps( $uid, $train, 0,
+ $now->epoch > $entry->{real_arr_ts} );
}
}
elsif ( $entry->{real_arr_ts} ) {