From 3feccffce0b7587d5f5131157233f4ca2fe5dbe8 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Mon, 26 Feb 2024 18:40:10 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20a=20bug=20by=20extending=20the=20query?= =?UTF-8?q?=20used=20for=20loading=20instances=20to=20be=20checked=20(it?= =?UTF-8?q?=20wasn=E2=80=99t=20considering=20new=20instances,=20now=20it?= =?UTF-8?q?=20should)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/clitools/crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/clitools/crawler.php b/web/clitools/crawler.php index 0b36012..b0a6031 100755 --- a/web/clitools/crawler.php +++ b/web/clitools/crawler.php @@ -240,7 +240,7 @@ if ($restore) { $insts=[]; eecho(0,'loading instances from the database...'.N); - $res=myq($link,'SELECT URI FROM Instances WHERE LastOkCheckTS IS NOT NULL AND LastOkCheckTS>='.$graceline,__LINE__); + $res=myq($link,'SELECT URI FROM Instances WHERE (LastOkCheckTS IS NOT NULL AND LastOkCheckTS>='.$graceline.') OR (LastOkCheckTS IS NULL AND InsertTS>='.$graceline.')',__LINE__); while($row=mysqli_fetch_assoc($res)) if (!in_array($row['URI'],$insts)) $insts[]=$row['URI'];