mirror of
https://github.com/derf/travelynx
synced 2024-12-03 01:39:10 +00:00
integritycheck: process journeys row by row rather than at once
This commit is contained in:
parent
37cb85e60d
commit
e2b756f06e
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue