]> 91.132.146.200 Git - aranea.git/commitdiff
needs more commits
authorBanana <mail@bananas-playground.net>
Fri, 18 Oct 2024 12:34:18 +0000 (14:34 +0200)
committerBanana <mail@bananas-playground.net>
Fri, 18 Oct 2024 12:34:18 +0000 (14:34 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
crawler/fetch.pl

index ac1e1551697b721647f0582e89a42a84afaa6d98..c9798346a18607df3d8f062bbefb5e444f330ee8 100644 (file)
@@ -117,6 +117,7 @@ while ( my ($id, $url) = each %urlsToFetch ) {
 
     if($counter >= $config->get("FETCH_URLS_PER_PACKAGE")) {
         updateFetched($dbh, @urlsFetched);
+        $dbh->commit();
         updateFailed($dbh, @urlsFailed);
         $dbh->commit();
 
@@ -130,6 +131,7 @@ while ( my ($id, $url) = each %urlsToFetch ) {
     $counter++;
 }
 updateFetched($dbh, @urlsFetched);
+$dbh->commit();
 updateFailed($dbh, @urlsFailed);
 $dbh->commit();