diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-03-24 17:15:15 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-03-24 17:15:15 +0100 |
commit | fe221a7ad367ed00c4bc179269aee03c4882d806 (patch) | |
tree | f310994cf7d06791f63891ae094e0d0be2bef3d7 /lib | |
parent | b245d01f658bca87a2a5fe2421016b03149f3518 (diff) |
restore Träwelling synchronization
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 6 | ||||
-rw-r--r-- | lib/Travelynx/Model/Traewelling.pm | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index cdfc84c..18f8381 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -2193,8 +2193,7 @@ sub startup { my $db = $self->pg->db; my $tx = $db->begin; - $self->_checkin_hafas_p( - hafas => 'DB', + $self->_checkin_dbris_p( station => $traewelling->{dep_eva}, train_id => $traewelling->{trip_id}, uid => $uid, @@ -2203,8 +2202,7 @@ sub startup { )->then( sub { $self->log->debug("... handled origin"); - return $self->_checkout_hafas_p( - hafas => 'DB', + return $self->_checkout_journey_p( station => $traewelling->{arr_eva}, train_id => $traewelling->{trip_id}, uid => $uid, diff --git a/lib/Travelynx/Model/Traewelling.pm b/lib/Travelynx/Model/Traewelling.pm index c460b1a..608da15 100644 --- a/lib/Travelynx/Model/Traewelling.pm +++ b/lib/Travelynx/Model/Traewelling.pm @@ -224,7 +224,7 @@ sub get_pushable_accounts { join in_transit_str as i on t.user_id = i.user_id where t.push_sync = True and i.arr_eva is not null - and i.backend_id <= 1 + and i.backend_id = (select id from backends where dbris = true and name = 'bahn.de') and i.cancelled = False } ); |