From c1c29648d7c22c3ba6df07f1088eca1f6ccb4a66 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 25 Oct 2010 21:05:33 -0500 Subject: [PATCH] Revert "whitespace nitpicking" because I want to merge this the right way This reverts commit b9c2be8c543ebc34ab210a6dfc3ba81f73a1e8a0. --- modules/Karma.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Karma.py b/modules/Karma.py index b171e17..1c62f10 100755 --- a/modules/Karma.py +++ b/modules/Karma.py @@ -61,7 +61,7 @@ class Karma(Module): SELECT key, SUM(delta) AS value FROM karma_log GROUP BY key''') - + sql = 'INSERT INTO drbotzo_modules VALUES (?,?)' conn.execute(sql, (self.__class__.__name__, 1)) conn.commit() @@ -118,10 +118,10 @@ class Karma(Module): ''' rank = conn.execute(query, {'value': value[0]}).fetchone() rank = rank[0] + 1; - + reply = '{nick}: {key} has {value[0]!s} points of karma (rank {rank})'.format( nick=nick, key=key, value=value, rank=rank) - + finally: conn.close() self.reply(connection, replypath, reply)