Syntax fix for SQL.

This commit is contained in:
Jeremy Fincher 2003-04-21 13:07:01 +00:00
parent 5aa9beacfb
commit c39fba7b0b

View File

@ -141,7 +141,7 @@ class Quotes(ChannelDBHandler, callbacks.Privmsg):
channel = privmsgs.getChannel(msg, args)
db = self.getDb(channel)
cursor = db.cursor()
cursor.execute("""SELECT (id, quote) FROM quotes
cursor.execute("""SELECT id, quote FROM quotes
ORDER BY random()
LIMIT 1""")
if cursor.rowcount != 1: