From 0c1993f28ec78b80887c4780a432b070bc441ab1 Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 13 Jul 2023 20:17:51 +0200 Subject: Checkin: Use correct visibility when pushing to Träwelling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Travelynx/Model/Traewelling.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx/Model/Traewelling.pm') diff --git a/lib/Travelynx/Model/Traewelling.pm b/lib/Travelynx/Model/Traewelling.pm index d320439..a388ae2 100644 --- a/lib/Travelynx/Model/Traewelling.pm +++ b/lib/Travelynx/Model/Traewelling.pm @@ -218,9 +218,11 @@ sub get_pushable_accounts { i.train_line as train_line, i.train_no as train_no, extract(epoch from i.checkin_time) as checkin_ts, extract(epoch from i.sched_departure) as dep_ts, - extract(epoch from i.sched_arrival) as arr_ts + extract(epoch from i.sched_arrival) as arr_ts, + i_str.effective_visibility as visibility from traewelling as t join in_transit as i on t.user_id = i.user_id + join in_transit_str as i_str on t.user_id = i_str.user_id where t.push_sync = True and i.checkout_station_id is not null and i.cancelled = False -- cgit v1.2.3