From 8671bc4d654ee7cb480b79a8e7dec56c2a869e7c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 29 Mar 2024 12:51:59 +0100 Subject: wagongroup_subtype: Support Link I (only has a single wagon) --- lib/Travel/Status/DE/DBWagenreihung.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Travel/Status/DE') 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; } -- cgit v1.2.3