integritycheck: process journeys row by row rather than at once

This commit is contained in:
Daniel Friesel 2022-12-04 21:04:43 +01:00
parent 37cb85e60d
commit e2b756f06e
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -56,8 +56,9 @@ sub run {
my %notified;
my $rename = $self->app->renamed_station;
$res = $self->app->pg->db->select( 'journeys', [ 'route', 'edited' ] );
for my $j ( $res->expand->hashes->each ) {
$res
= $self->app->pg->db->select( 'journeys', [ 'route', 'edited' ] )->expand;
while ( my $j = $res->hash ) {
if ( $j->{edited} & 0x0010 ) {
next;
}