summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-01 09:43:09 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-01 09:43:09 +0200
commitafe639efc0edc5fddec176ee023afd768c954bf0 (patch)
tree3b6296dd6219bf119b4865cec056fb9994e23952 /lib
parentc74b91b09f8888b5d4a35b7b2cb49d313db342d9 (diff)
update to DBWagenreihung v0.164.29.2
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm27
-rw-r--r--lib/DBInfoscreen/Controller/Wagenreihung.pm1
-rw-r--r--lib/DBInfoscreen/Helper/Wagonorder.pm1
3 files changed, 15 insertions, 14 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 66bf402..93c9546 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -818,19 +818,20 @@ sub render_train {
$entry = $wagon->number;
}
else {
- $entry = $wagon->type;
-
- #if ($wagon->has_first_class) {
- # if ($wagon->has_second_class) {
- # $entry = '½';
- # }
- # else {
- # $entry = '1.';
- # }
- #}
- #else {
- # $entry = '2.';
- #}
+ if ( $wagon->has_first_class ) {
+ if ( $wagon->has_second_class ) {
+ $entry = '½';
+ }
+ else {
+ $entry = '1.';
+ }
+ }
+ elsif ( $wagon->has_second_class ) {
+ $entry = '2.';
+ }
+ else {
+ $entry = $wagon->type;
+ }
}
if (
$group->train_no ne $departure->{train_no} )
diff --git a/lib/DBInfoscreen/Controller/Wagenreihung.pm b/lib/DBInfoscreen/Controller/Wagenreihung.pm
index bfda626..cf7cdd3 100644
--- a/lib/DBInfoscreen/Controller/Wagenreihung.pm
+++ b/lib/DBInfoscreen/Controller/Wagenreihung.pm
@@ -11,7 +11,6 @@ use Mojo::Util qw(b64_encode b64_decode);
use utf8;
use Travel::Status::DE::DBWagenreihung;
-use Travel::Status::DE::DBWagenreihung::Wagon;
sub handle_wagenreihung_error {
my ( $self, $train, $err ) = @_;
diff --git a/lib/DBInfoscreen/Helper/Wagonorder.pm b/lib/DBInfoscreen/Helper/Wagonorder.pm
index 33c7272..5b69da9 100644
--- a/lib/DBInfoscreen/Helper/Wagonorder.pm
+++ b/lib/DBInfoscreen/Helper/Wagonorder.pm
@@ -31,6 +31,7 @@ sub get_p {
if ( $opt{param} ) {
%param = %{ $opt{param} };
+ delete $param{e};
}
else {
my $datetime = $opt{datetime}->clone->set_time_zone('UTC');