diff options
Diffstat (limited to 'gentoobrowse/views/popular.xml')
-rw-r--r-- | gentoobrowse/views/popular.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gentoobrowse/views/popular.xml b/gentoobrowse/views/popular.xml index 873805a..e21a296 100644 --- a/gentoobrowse/views/popular.xml +++ b/gentoobrowse/views/popular.xml @@ -2,15 +2,15 @@ <block xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:project2="http://project2.randomdan.homeip.net"> <xi:include href="../datasources/postgres-web.xml" /> - <project2:sqlview name="packages" recordname="package" datasource="postgres-web"> + <project2:sqlrows name="popularPackages" datasource="postgres-web"> <sql> - SELECT p.packageid, MIN(c.name) AS catname, MIN(p.name) AS pkgname, MIN(p.description) AS description + SELECT p.packageid, MIN(c.name) AS catname, MIN(p.name) AS pkgname, MIN(p.description) AS description, COUNT(*) AS trackers FROM user_packages up, packages p, categories c WHERE up.packageid = p.packageid AND p.categoryid = c.categoryid GROUP BY p.packageid - ORDER BY COUNT(*), MIN(c.name), MIN(p.name) + ORDER BY COUNT(*) DESC, MIN(c.name), MIN(p.name) LIMIT 50 </sql> - </project2:sqlview> + </project2:sqlrows> </block> |