ignore missing timestamps when performing a force checkout

This commit is contained in:
Daniel Friesel 2020-04-16 04:54:41 +02:00
parent 4cc510d710
commit e5f273ced3

View file

@ -806,11 +806,10 @@ sub startup {
my $tx = $db->begin;
if ( defined $train ) {
if ( not $train->arrival ) {
if ( defined $train and not $train->arrival and not $force ) {
die("Train has no arrival timestamp\n");
}
elsif ( defined $train and $train->arrival ) {
$has_arrived = $train->arrival->epoch < $now->epoch ? 1 : 0;
my $json = JSON->new;