Sort test results by rating
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user