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

index.pl import stops: actually import the final batch of stops

parent 5356e00a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -86,6 +86,17 @@ sub import_stops {
			@queue = ();
		}
	}

	if (@queue) {
		$self->app->stations->upsert_import(
			db         => $db,
			stations   => \@queue,
			batch_size => scalar @queue,
		);
		$i += @queue;
		@queue = ();
	}

	say "\r\e[2KImported ${i} stops";

	$i = 0;