Sort test results by rating

This commit is contained in:
Tony Lambregts
2006-07-09 06:08:00 +00:00
committed by WineHQ
parent 97c96b2448
commit 77170ab9dd
2 changed files with 5 additions and 3 deletions

View File

@@ -50,7 +50,8 @@ class distribution{
{
$sQuery = "SELECT testingId
FROM testResults
WHERE distributionId = '?'";
WHERE distributionId = '?'
ORDER BY testedRating;" ;
} else /* only let users view test results that aren't queued and for apps that */
/* aren't queued or versions that aren't queued */
{
@@ -61,7 +62,8 @@ class distribution{
appFamily.appId = appVersion.appId AND
appFamily.queued = 'false' AND
appVersion.queued = 'false' AND
distributionId = '?'";
distributionId = '?'
ORDER BY testedRating;";
}
if($hResult = query_parameters($sQuery, $iDistributionId))

View File

@@ -16,7 +16,7 @@ create table testResults (
testedRelease tinytext,
installs enum('Yes','No','N/A') NOT NULL default 'Yes',
runs enum('Yes','No','Not Installable') NOT NULL default 'Yes',
testedRating tinytext,
testedRating enum('Platinum','Gold','Silver','Bronze','Garbage') NOT NULL,
comments text,
submitTime timestamp(14) NOT NULL,
submitterId int(11) NOT NULL default '0',