Had to do a map(int, ...) thing because sqlite sometimes sucks at that kind of thing.

This commit is contained in:
Jeremy Fincher 2003-08-17 06:22:01 +00:00
parent 958bd65b8b
commit 44d4c98dc7

View File

@ -295,7 +295,7 @@ class ChannelDB(callbacks.PrivmsgCommandAndRegexp, ChannelDBHandler):
if cursor.rowcount == 0: if cursor.rowcount == 0:
irc.reply(msg, '%s has no karma.' % name) irc.reply(msg, '%s has no karma.' % name)
else: else:
(added, subtracted) = cursor.fetchone() (added, subtracted) = map(int, cursor.fetchone())
total = added - subtracted total = added - subtracted
irc.reply(msg, '%s\'s karma has been increased %s %s ' \ irc.reply(msg, '%s\'s karma has been increased %s %s ' \
'and decreased %s %s for a total karma of %s.' % \ 'and decreased %s %s for a total karma of %s.' % \