mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-09-02 17:22:56 +00:00
fix broken snaps autodelection
This commit is contained in:
parent
1dd0a8ee2c
commit
2c17c93e2f
@ -272,6 +272,10 @@ try {
|
|||||||
$logsCrawlerDeleted += $db->deleteLogCrawler(time() - CRAWL_LOG_SECONDS_OFFSET);
|
$logsCrawlerDeleted += $db->deleteLogCrawler(time() - CRAWL_LOG_SECONDS_OFFSET);
|
||||||
|
|
||||||
// Delete failed snaps
|
// Delete failed snaps
|
||||||
|
foreach ($db->getHosts() as $host) {
|
||||||
|
|
||||||
|
foreach ($db->getHostPages($host->hostId) as $hostPage) {
|
||||||
|
|
||||||
$snapFilePath = chunk_split($hostPage->hostPageId, 1, '/');
|
$snapFilePath = chunk_split($hostPage->hostPageId, 1, '/');
|
||||||
|
|
||||||
foreach ($db->getHostPageSnaps($hostPage->hostPageId, false, false, 'AND') as $hostPageSnap) {
|
foreach ($db->getHostPageSnaps($hostPage->hostPageId, false, false, 'AND') as $hostPageSnap) {
|
||||||
@ -294,6 +298,8 @@ try {
|
|||||||
|
|
||||||
$hostPagesSnapDeleted += $db->deleteHostPageSnap($hostPageSnap->hostPageSnapId);
|
$hostPagesSnapDeleted += $db->deleteHostPageSnap($hostPageSnap->hostPageSnapId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Commit results
|
// Commit results
|
||||||
$db->commit();
|
$db->commit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user