From 852c7797b0b1d54078d0720a88f59807252e05d8 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Sat, 1 Apr 2023 18:05:32 +0200 Subject: Update HAFAS polylines prior to checkout 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 --- lib/Travelynx/Command/work.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx/Command/work.pm') 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} ) { -- cgit v1.2.3