diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-09-18 20:52:32 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-09-18 20:52:32 +0200 |
commit | 3233b996b3c31976e8aee42dc867e7ad92dd61dc (patch) | |
tree | 2842fff596770f185b3cfaf5b5fa529fc753a1ae /lib/Travelynx/Command/integritycheck.pm | |
parent | 0a2fdea55f38c30904600c1ae0322256ade0e53d (diff) |
Stations->get_by_names: backend_id is mandatory these days
Diffstat (limited to 'lib/Travelynx/Command/integritycheck.pm')
-rw-r--r-- | lib/Travelynx/Command/integritycheck.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/integritycheck.pm b/lib/Travelynx/Command/integritycheck.pm index be5fe71..907d484 100644 --- a/lib/Travelynx/Command/integritycheck.pm +++ b/lib/Travelynx/Command/integritycheck.pm @@ -76,7 +76,8 @@ sub run { my %notified; my $rename = $self->app->renamed_station; - my $res = $db->select( 'journeys', [ 'route', 'edited' ] )->expand; + my $res = $db->select( 'journeys', [ 'backend_id', 'route', 'edited' ] ) + ->expand; while ( my $j = $res->hash ) { if ( $j->{edited} & 0x0010 ) { @@ -89,8 +90,10 @@ sub run { $stop->[0] = $rename->{ $stop->[0] }; } } - my @unknown - = $self->app->stations->grep_unknown( map { $_->[0] } @stops ); + my @unknown = $self->app->stations->grep_unknown( + backend_id => $j->{backend_id}, + names => [ map { $_->[0] } @stops ] + ); for my $stop_name (@unknown) { if ( not $notified{$stop_name} ) { if ( not $found ) { |