ignore missing timestamps when performing a force checkout
This commit is contained in:
parent
4cc510d710
commit
e5f273ced3
1 changed files with 4 additions and 5 deletions
|
@ -806,11 +806,10 @@ sub startup {
|
||||||
|
|
||||||
my $tx = $db->begin;
|
my $tx = $db->begin;
|
||||||
|
|
||||||
if ( defined $train ) {
|
if ( defined $train and not $train->arrival and not $force ) {
|
||||||
|
|
||||||
if ( not $train->arrival ) {
|
|
||||||
die("Train has no arrival timestamp\n");
|
die("Train has no arrival timestamp\n");
|
||||||
}
|
}
|
||||||
|
elsif ( defined $train and $train->arrival ) {
|
||||||
|
|
||||||
$has_arrived = $train->arrival->epoch < $now->epoch ? 1 : 0;
|
$has_arrived = $train->arrival->epoch < $now->epoch ? 1 : 0;
|
||||||
my $json = JSON->new;
|
my $json = JSON->new;
|
||||||
|
|
Loading…
Reference in a new issue