Show also servers with policy 'approve'
Changed the queries to show also servers with register policy 'approval'.
This commit is contained in:
parent
1e3dab7c10
commit
778168e0c4
|
@ -62,7 +62,7 @@ class Servers extends BaseController
|
||||||
|
|
||||||
$stmt = 'SELECT *
|
$stmt = 'SELECT *
|
||||||
FROM `server` s
|
FROM `server` s
|
||||||
WHERE `reg_policy` = "REGISTER_OPEN"
|
WHERE `reg_policy` != "REGISTER_CLOSED"
|
||||||
AND `available`
|
AND `available`
|
||||||
AND NOT `hidden`
|
AND NOT `hidden`
|
||||||
ORDER BY `health_score` DESC, `ssl_state` DESC, `info` != "" DESC, `last_seen` DESC
|
ORDER BY `health_score` DESC, `ssl_state` DESC, `info` != "" DESC, `last_seen` DESC
|
||||||
|
@ -81,7 +81,7 @@ LIMIT :start, :limit';
|
||||||
|
|
||||||
$stmt = 'SELECT COUNT(*)
|
$stmt = 'SELECT COUNT(*)
|
||||||
FROM `server` s
|
FROM `server` s
|
||||||
WHERE `reg_policy` = "REGISTER_OPEN"
|
WHERE `reg_policy` != "REGISTER_CLOSED"
|
||||||
AND `available`
|
AND `available`
|
||||||
AND NOT `hidden`';
|
AND NOT `hidden`';
|
||||||
$count = $this->atlas->fetchValue($stmt);
|
$count = $this->atlas->fetchValue($stmt);
|
||||||
|
|
Loading…
Reference in a new issue