Fix AppDB stats page

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-23 15:17:33 +01:00
committed by Chris Morgan
parent 70c992a379
commit 663894bed4
2 changed files with 7 additions and 7 deletions

View File

@@ -60,13 +60,13 @@ echo "</tr>\n\n";
/* Display the number of application familes */
echo "<tr class=color4>\n";
echo " <td>Application families:</td>\n";
echo " <td>".application::objectGetEntriesCount(false, false)."</td>\n";
echo " <td>".application::objectGetEntriesCount('accepted')."</td>\n";
echo "</tr>\n\n";
/* Display the number of versions */
echo "<tr class=color4>\n";
echo " <td>Versions:</td>\n";
echo " <td>".version::objectGetEntriesCount(false, false)."</td>\n";
echo " <td>".version::objectGetEntriesCount('accepted')."</td>\n";
echo "</tr>\n\n";
/* Display the number of application maintainers */
@@ -75,16 +75,16 @@ echo " <td>Application maintainers:</td>\n";
echo " <td>".Maintainer::getNumberOfMaintainers()."</td>\n";
echo "</tr>\n\n";
/* Display the number of testing reports */
/* Display the number of test reports */
echo "<tr class=color4>\n";
echo " <td>Testing reports:</td>\n";
echo " <td>".testData::objectGetEntriescount(false, false)."</td>\n";
echo " <td>Test reports:</td>\n";
echo " <td>".testData::objectGetEntriescount('accepted')."</td>\n";
echo "</tr>\n\n";
/* Display the number of images */
echo "<tr class=color4>\n";
echo " <td>Screenshots:</td>\n";
echo " <td>".appData::objectGetEntriesCount("false", false, "screenshot")."</td>\n";
echo " <td>".screenshot::objectGetEntriesCount('accepted')."</td>\n";
echo "</tr>\n\n";
echo "</table>\n\n";

View File

@@ -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);
}