Unverified Commit e2b756f0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

integritycheck: process journeys row by row rather than at once

parent 37cb85e6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
		}