whitespace nitpicking
This commit is contained in:
parent
3d65a6a158
commit
70b49ecbcc
|
@ -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