whitespace nitpicking

This commit is contained in:
Brian S. Stephan 2010-10-25 20:50:59 -05:00
parent 5a76a9866a
commit b9c2be8c54

View File

@ -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)