summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-29 18:03:46 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-29 18:03:46 +0100
commitc4ae9f3d5ce97bad153ba6862b42d26c2c31a419 (patch)
treeeea909b01aca631a418f5f14e8a5c0260c5251da /lib
parent6dfde950dfc486613215d350d84aeedb8c18c7a8 (diff)
Stationboard: is_partially_cancelled does not refer to current station
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 1ec39f3..1e6a4fc 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -1546,15 +1546,14 @@ sub handle_result {
platform => $result->platform,
scheduled_platform => $result->sched_platform,
info => $info,
- is_cancelled => $result->is_cancelled
- || $result->is_partially_cancelled,
- linetype => $linetype,
- station => $result->station,
- moreinfo => $moreinfo,
- delay => $delay,
- replaced_by => [],
- replacement_for => [],
- route_pre => [],
+ is_cancelled => $result->is_cancelled,
+ linetype => $linetype,
+ station => $result->station,
+ moreinfo => $moreinfo,
+ delay => $delay,
+ replaced_by => [],
+ replacement_for => [],
+ route_pre => [],
route_post => [ map { $_->{name} } $result->route ],
wr_link => $result->sched_datetime
? $result->sched_datetime->strftime('%Y%m%d%H%M')