From 0e5024925691e6bc6848328e08451ec4d5eac704 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Mon, 15 Mar 2010 23:12:35 -0400 Subject: [PATCH] start factoid rankings from 1 not from 0 --- plugins/Factoids/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 787097493..befe54cc3 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -255,7 +255,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): ORDER BY factoids.usage_count DESC LIMIT %s""", numfacts) 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)) factrank = wrap(factrank, ['channel'])