mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fix PySqlite stupidity.
This commit is contained in:
parent
f6fbe4eb27
commit
b40fc68673
@ -130,7 +130,8 @@ class Poll(callbacks.Privmsg, plugins.ChannelDBHandler):
|
|||||||
optionstr = 'This poll has no options yet'
|
optionstr = 'This poll has no options yet'
|
||||||
else:
|
else:
|
||||||
options = cursor.fetchall()
|
options = cursor.fetchall()
|
||||||
optionstr = 'Options: ' + ' '.join(['%s: %r' % t for t in options])
|
optionstr = 'Options: %s' %\
|
||||||
|
' '.join(['%s: %r' % tuple(t) for t in options])
|
||||||
pollstr = 'Poll #%s: %r started by %s. %s. Poll is %s.' % \
|
pollstr = 'Poll #%s: %r started by %s. %s. Poll is %s.' % \
|
||||||
(poll_id, question, starter, optionstr, statusstr)
|
(poll_id, question, starter, optionstr, statusstr)
|
||||||
irc.reply(pollstr)
|
irc.reply(pollstr)
|
||||||
@ -319,7 +320,7 @@ class Poll(callbacks.Privmsg, plugins.ChannelDBHandler):
|
|||||||
if cursor.rowcount == 0:
|
if cursor.rowcount == 0:
|
||||||
irc.reply('This channel currently has no open polls.')
|
irc.reply('This channel currently has no open polls.')
|
||||||
else:
|
else:
|
||||||
polls = ['#%s: %r' % t for t in cursor.fetchall()]
|
polls = ['#%s: %r' % tuple(t) for t in cursor.fetchall()]
|
||||||
irc.reply(utils.commaAndify(polls))
|
irc.reply(utils.commaAndify(polls))
|
||||||
|
|
||||||
Class = Poll
|
Class = Poll
|
||||||
|
Loading…
Reference in New Issue
Block a user