summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 12:51:59 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 12:51:59 +0100
commit8671bc4d654ee7cb480b79a8e7dec56c2a869e7c (patch)
treef7ab2265586d36164c7f8e2f7b1b97dd2dfb4f7a /lib
parent3fd3f93c92bc38650eb0653b5cf5c707a5dae747 (diff)
wagongroup_subtype: Support Link I (only has a single wagon)
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm
index e72cdb3..09abb79 100644
--- a/lib/Travel/Status/DE/DBWagenreihung.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung.pm
@@ -648,9 +648,9 @@ sub wagongroup_subtype {
my @likelihood = reverse sort { $ml{$a} <=> $ml{$b} } keys %ml;
- if ( $ml{ $likelihood[0] } < 2 ) {
-
- # inconclusive
+ # Less than two wagons are generally inconclusive.
+ # Exception: BR 631 (Link I) only has a single wagon
+ if ( $ml{ $likelihood[0] } < 2 and $likelihood[0] ne '631' ) {
return undef;
}