Browse Source

fix total condition

main
ghost 1 year ago
parent
commit
da365c1ab1
  1. 7
      src/cli/yggo/import.php

7
src/cli/yggo/import.php

@ -63,7 +63,12 @@ catch (Exception $error) @@ -63,7 +63,12 @@ catch (Exception $error)
$start = 0;
$limit = 100;
$total = $yggo->query('SELECT COUNT(*) AS `total` FROM `hostPage` WHERE `httpCode` = 200')->fetch()->total;
$total = $yggo->query('SELECT COUNT(*) AS `total` FROM `hostPage`
WHERE `hostPage`.`httpCode` = 200
AND `hostPage`.`timeUpdated` IS NOT NULL
AND `hostPage`.`mime` IS NOT NULL
AND `hostPage`.`size` IS NOT NULL')->fetch()->total;
$processed = 0;

Loading…
Cancel
Save