fix active pages total

This commit is contained in:
ghost 2023-07-27 16:53:25 +03:00
parent a4b4ea324b
commit 0fb2e8a78c

View File

@ -96,6 +96,18 @@ class MySQL {
`hostTarget`.`name`,
`hostTarget`.`port`,
(
SELECT COUNT(*) FROM `hostPage` AS `hostPageTotal`
WHERE `hostPageTotal`.`hostId` = `hostPageTarget`.`hostId`
AND `hostPageTotal`.`httpCode` = 200
AND `hostPageTotal`.`timeBanned` IS NULL
AND `hostPageTotal`.`mime` IS NOT NULL
) AS `total`,
(
SELECT COUNT(*)