summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-03-24 17:15:15 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-03-24 17:15:15 +0100
commitfe221a7ad367ed00c4bc179269aee03c4882d806 (patch)
treef310994cf7d06791f63891ae094e0d0be2bef3d7 /lib
parentb245d01f658bca87a2a5fe2421016b03149f3518 (diff)
restore Träwelling synchronization
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm6
-rw-r--r--lib/Travelynx/Model/Traewelling.pm2
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
}
);