diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-16 17:20:36 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-16 17:20:36 +0200 |
commit | f9d1c266ce0e34841a9ec48f516c3428b2951f91 (patch) | |
tree | 7db75ecb3fc9ae23598e9799fccdf9e7fbdd6a1e /lib/Travelynx | |
parent | 81fb92199ca2906a94ec4fc0669ca8f7eb100d9c (diff) |
action#checkin: re-add auto checkout1.33.1
was removed from $self->checkin in 1074f248cc415a397f16d0328a8f45fa6a867513
Diffstat (limited to 'lib/Travelynx')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index fc59b68..48fa944 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -621,6 +621,14 @@ sub travel_action { if ( $params->{action} eq 'checkin' ) { + my $status = $self->get_user_status; + if ( $status->{checked_in} + and $status->{arr_eva} + and $status->{arrival_countdown} <= 0 ) + { + $self->checkout( station => $status->{arr_eva} ); + } + $self->render_later; $self->checkin_p( station => $params->{station}, |