summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-04-06 15:16:52 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-04-06 15:16:52 +0200
commitf681aa41db5f26db38d8a8dc68e5a0fea1402f8c (patch)
tree3a346b45a6c6930c1788ceb6bb4e4cef294e2e3f /lib/Travelynx/Command/work.pm
parent3b6297b785d53d1a329bde437cdedeaf9cba2373 (diff)
Perl is hard1.30.13
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 7eaf4ce..74a29e6 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -164,9 +164,13 @@ sub run {
);
}
else {
- $self->app->add_route_timestamps( $uid, $train, 0,
- defined $entry->{real_arr_ts}
- and $now->epoch > $entry->{real_arr_ts} );
+ $self->app->add_route_timestamps(
+ $uid, $train, 0,
+ (
+ defined $entry->{real_arr_ts}
+ and $now->epoch > $entry->{real_arr_ts}
+ ) ? 1 : 0
+ );
}
}
elsif ( $entry->{real_arr_ts} ) {