Fix ranking display.

This commit is contained in:
James Vega 2005-02-26 16:24:26 +00:00
parent 72edc74fbd
commit 09eecf5a4e

View File

@ -127,7 +127,7 @@ class SqliteKarmaDB(object):
cursor.execute("""SELECT COUNT(*) FROM karma cursor.execute("""SELECT COUNT(*) FROM karma
WHERE added-subtracted > %s""", karma) WHERE added-subtracted > %s""", karma)
rank = int(cursor.fetchone()[0]) rank = int(cursor.fetchone()[0])
return rank return rank+1
def size(self, channel): def size(self, channel):
db = self._getDb(channel) db = self._getDb(channel)