Entropy/DistributionUGCInterface:

- get_users_score_ranking(): reverse query results order


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2711 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-12-03 21:53:05 +00:00
parent 14990c422e
commit 4e56e233c8
+1 -1
View File
@@ -17800,7 +17800,7 @@ class DistributionUGCInterface(RemoteDbSkelInterface):
limit_string = ''
if count:
limit_string = ' LIMIT %s,%s' % (offset,count,)
self.execute_query('SELECT SQL_CALC_FOUND_ROWS *,userid,score FROM entropy_user_scores ORDER BY score'+limit_string)
self.execute_query('SELECT SQL_CALC_FOUND_ROWS *,userid,score FROM entropy_user_scores ORDER BY score DESC'+limit_string)
data = self.fetchall()
self.execute_query('SELECT FOUND_ROWS() as count')