Remove 'maintainer' from version rating fields

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-12-28 22:57:02 +01:00
committed by Chris Morgan
parent e8bfc0024c
commit 2c2c6fffc1
4 changed files with 14 additions and 14 deletions

View File

@@ -293,7 +293,7 @@ function outputTopXRowAppsFromRating($sRating, $iNumApps)
$sQuery = "SELECT appVotes.versionId, COUNT( appVotes.versionId ) AS c
FROM appVotes, appVersion
WHERE appVersion.maintainer_rating = '?'
WHERE appVersion.rating = '?'
AND appVersion.versionId = appVotes.versionId
GROUP BY appVotes.versionId
ORDER BY c DESC
@@ -313,7 +313,7 @@ function outputTopXRowAppsFromRating($sRating, $iNumApps)
/* if we have any empty spots in the list, get these from applications with images */
$sQuery = "SELECT DISTINCT appVersion.versionId
FROM appVersion, appData
WHERE appVersion.maintainer_rating = '$sRating'
WHERE appVersion.rating = '$sRating'
AND appVersion.versionId = appData.versionId
AND appData.type = 'screenshot'
AND appData.queued = 'false'";