Loading lib/Travelynx/Model/Traewelling.pm +2 −6 Original line number Diff line number Diff line Loading @@ -183,7 +183,6 @@ sub set_sync { sub get_pushable_accounts { my ($self) = @_; my $now = $self->now->epoch; my $res = $self->{pg}->db->query( qq{select t.user_id as uid, t.token as token, t.data as data, i.checkin_station_id as dep_eva, i.checkout_station_id as arr_eva, Loading @@ -195,10 +194,7 @@ sub get_pushable_accounts { where t.push_sync = True and i.checkout_station_id is not null and i.cancelled = False and (extract(epoch from i.sched_departure) > ? or extract(epoch from i.real_departure) > ?) and extract(epoch from i.sched_departure) < ? }, $now - 300, $now - 300, $now + 600 } ); return $res->expand->hashes->each; } Loading templates/traewelling.html.ep +2 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,8 @@ </div> <p>Die Synchronisierung erfolgt spätestens drei Minuten nach der Zielwahl. Träwelling-Checkins können von travelynx noch nicht rückgängig gemacht werden.</p> rückgängig gemacht werden. Eine nachträgliche Änderung der Zielstation wird nicht übernommen.</p> </div> <div class="input-field col s12"> <div> Loading Loading
lib/Travelynx/Model/Traewelling.pm +2 −6 Original line number Diff line number Diff line Loading @@ -183,7 +183,6 @@ sub set_sync { sub get_pushable_accounts { my ($self) = @_; my $now = $self->now->epoch; my $res = $self->{pg}->db->query( qq{select t.user_id as uid, t.token as token, t.data as data, i.checkin_station_id as dep_eva, i.checkout_station_id as arr_eva, Loading @@ -195,10 +194,7 @@ sub get_pushable_accounts { where t.push_sync = True and i.checkout_station_id is not null and i.cancelled = False and (extract(epoch from i.sched_departure) > ? or extract(epoch from i.real_departure) > ?) and extract(epoch from i.sched_departure) < ? }, $now - 300, $now - 300, $now + 600 } ); return $res->expand->hashes->each; } Loading
templates/traewelling.html.ep +2 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,8 @@ </div> <p>Die Synchronisierung erfolgt spätestens drei Minuten nach der Zielwahl. Träwelling-Checkins können von travelynx noch nicht rückgängig gemacht werden.</p> rückgängig gemacht werden. Eine nachträgliche Änderung der Zielstation wird nicht übernommen.</p> </div> <div class="input-field col s12"> <div> Loading