add site_type to queries, first few - several more to go.

This commit is contained in:
redmatrix
2015-09-28 04:21:29 -07:00
parent edbcba6f11
commit dbeae16dc1
3 changed files with 9 additions and 5 deletions

View File

@@ -16,7 +16,9 @@ function is_matrix_url($url) {
function prune_hub_reinstalls() {
$r = q("select site_url from site where true");
$r = q("select site_url from site where site_type = %d",
intval(SITE_TYPE_ZOT)
);
if($r) {
foreach($r as $rr) {
$x = q("select count(*) as t, hubloc_sitekey, max(hubloc_connected) as c from hubloc where hubloc_url = '%s' group by hubloc_sitekey order by c",