mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fix ranking display.
This commit is contained in:
parent
72edc74fbd
commit
09eecf5a4e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user