Generate ratings from test results

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-12-25 19:26:35 +01:00
committed by Chris Morgan
parent 274f256a63
commit 6a82a4fe3a
4 changed files with 161 additions and 5 deletions

View File

@@ -33,6 +33,8 @@ removeScreenshotsWithMissingFiles();
/* status since they aren't really maintaining the application/version */
maintainerCheck();
/* Updates the rating info for all versions based on test results */
updateRatings();
/*
* Warn users that have been inactive for some number of months
@@ -356,4 +358,18 @@ function maintainerCheck()
maintainer::notifyMaintainersOfQueuedData();
}
function updateRatings()
{
$hResult = query_parameters("SELECT * FROM appVersion");
if(!$hResult)
return;
while($oRow = mysql_fetch_object($hResult))
{
$oVersion = new version(0, $oRow);
$oVersion->updateRatingInfo();
}
}
?>