whitespace nitpicking
This commit is contained in:
parent
5a76a9866a
commit
b9c2be8c54
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user