HAFAS "national" trips are also trains
This commit is contained in:
parent
c56d126d89
commit
ce88fe440c
1 changed files with 5 additions and 3 deletions
|
@ -2397,13 +2397,15 @@ sub startup {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $traewelling->{category}
|
if ( $traewelling->{category}
|
||||||
!~ m{^ (?: nationalExpress | regional | suburban ) $ }x )
|
!~ m{^ (?: national | nationalExpress | regional | suburban ) $ }x
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$self->log->debug("... status is not a train");
|
$self->log->debug(
|
||||||
|
"... status is not a train, but $traewelling->{category}");
|
||||||
$self->traewelling->log(
|
$self->traewelling->log(
|
||||||
uid => $uid,
|
uid => $uid,
|
||||||
message =>
|
message =>
|
||||||
"$traewelling->{line} nach $traewelling->{arr_name} ist keine Zugfahrt",
|
"$traewelling->{line} nach $traewelling->{arr_name} ist keine Zugfahrt (HAFAS-Kategorie '$traewelling->{category}')",
|
||||||
status_id => $traewelling->{status_id},
|
status_id => $traewelling->{status_id},
|
||||||
);
|
);
|
||||||
$self->traewelling->set_latest_pull_status_id(
|
$self->traewelling->set_latest_pull_status_id(
|
||||||
|
|
Loading…
Reference in a new issue