diff --git a/appdbStats.php b/appdbStats.php index d3dcef2..0915839 100644 --- a/appdbStats.php +++ b/appdbStats.php @@ -60,13 +60,13 @@ echo "\n\n"; /* Display the number of application familes */ echo "\n"; echo " Application families:\n"; -echo " ".application::objectGetEntriesCount(false, false)."\n"; +echo " ".application::objectGetEntriesCount('accepted')."\n"; echo "\n\n"; /* Display the number of versions */ echo "\n"; echo " Versions:\n"; -echo " ".version::objectGetEntriesCount(false, false)."\n"; +echo " ".version::objectGetEntriesCount('accepted')."\n"; echo "\n\n"; /* Display the number of application maintainers */ @@ -75,16 +75,16 @@ echo " Application maintainers:\n"; echo " ".Maintainer::getNumberOfMaintainers()."\n"; echo "\n\n"; -/* Display the number of testing reports */ +/* Display the number of test reports */ echo "\n"; -echo " Testing reports:\n"; -echo " ".testData::objectGetEntriescount(false, false)."\n"; +echo " Test reports:\n"; +echo " ".testData::objectGetEntriescount('accepted')."\n"; echo "\n\n"; /* Display the number of images */ echo "\n"; echo " Screenshots:\n"; -echo " ".appData::objectGetEntriesCount("false", false, "screenshot")."\n"; +echo " ".screenshot::objectGetEntriesCount('accepted')."\n"; echo "\n\n"; echo "\n\n"; diff --git a/include/maintainer.php b/include/maintainer.php index b886d4a..3449b80 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -514,7 +514,7 @@ class maintainer /* see how many unique maintainers we actually have */ function getNumberOfMaintainers() { - $hResult = query_parameters("SELECT DISTINCT userId FROM appMaintainers WHERE queued='false';"); + $hResult = query_parameters("SELECT DISTINCT userId FROM appMaintainers WHERE state='accepted';"); return query_num_rows($hResult); }