diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-15 19:06:44 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-15 19:06:44 +0200 |
commit | 2c6890f869356a48482839b8c394064777abf07f (patch) | |
tree | 3ebbe99c1e372f25ad9bd76d91ede12de01872d5 | |
parent | ddf365dee49f4c96e6657a49e7f1cf48f8860f4e (diff) |
EFA: Handle check-ins into cancelled departures
Note that this bumps the EFA dependency to 3.10 (which is just being released)
Arrival cancellations are still on the to-do list
-rw-r--r-- | cpanfile | 2 | ||||
-rw-r--r-- | lib/Travelynx/Model/InTransit.pm | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ requires 'Mojolicious::Plugin::OAuth2'; requires 'Mojo::Pg'; requires 'Text::CSV'; requires 'Text::Markdown'; -requires 'Travel::Status::DE::EFA'; +requires 'Travel::Status::DE::EFA', '>= 3.10'; requires 'Travel::Status::MOTIS', '>= 0.01'; requires 'Travel::Status::DE::DBRIS', '>= 0.10'; requires 'Travel::Status::DE::HAFAS', '>= 6.20'; diff --git a/lib/Travelynx/Model/InTransit.pm b/lib/Travelynx/Model/InTransit.pm index b845c57..e2ab7f5 100644 --- a/lib/Travelynx/Model/InTransit.pm +++ b/lib/Travelynx/Model/InTransit.pm @@ -170,7 +170,7 @@ sub add { 'in_transit', { user_id => $uid, - cancelled => 0, # TODO + cancelled => $stop->is_cancelled ? 1 : 0, checkin_station_id => $stop->id_num, checkin_time => $now, dep_platform => $stop->platform, |