Unverified Commit 2c6890f8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

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
parent ddf365de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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';
+1 −1
Original line number Diff line number Diff line
@@ -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,