mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-13 05:32:33 +01:00
start factoid rankings from 1 not from 0
This commit is contained in:
parent
3326212d55
commit
0e50249256
@ -255,7 +255,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
ORDER BY factoids.usage_count DESC
|
ORDER BY factoids.usage_count DESC
|
||||||
LIMIT %s""", numfacts)
|
LIMIT %s""", numfacts)
|
||||||
factkeys = cursor.fetchall()
|
factkeys = cursor.fetchall()
|
||||||
s = [ "#%d %s (%d)" % (i, key[0], key[1]) for i, key in enumerate(factkeys) ]
|
s = [ "#%d %s (%d)" % (i+1, key[0], key[1]) for i, key in enumerate(factkeys) ]
|
||||||
irc.reply(", ".join(s))
|
irc.reply(", ".join(s))
|
||||||
factrank = wrap(factrank, ['channel'])
|
factrank = wrap(factrank, ['channel'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user