From 9277d4113feec8d34a08438f0405c7b9ae7812a8 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 2 Dec 2003 18:58:28 +0000 Subject: [PATCH] According to pysqlite 0.50.0 you can have a fractional number of items in a db :( --- plugins/MoobotFactoids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/MoobotFactoids.py b/plugins/MoobotFactoids.py index f920ea761..cca49ca79 100644 --- a/plugins/MoobotFactoids.py +++ b/plugins/MoobotFactoids.py @@ -533,7 +533,7 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp): cursor.execute("""SELECT created_by, count(key) FROM factoids GROUP BY created_by ORDER BY count(key) DESC LIMIT %s""", limit) - L = ['%s (%s)' % (ircdb.users.getUser(t[0]).name, t[1]) + L = ['%s (%s)' % (ircdb.users.getUser(t[0]).name, int(t[1])) for t in cursor.fetchall()] return 'Most prolific %s: %s' % \ (utils.pluralize(len(L), 'author'), utils.commaAndify(L))