From c39fba7b0b4096bb0c2bf95f37d99e0015ee10f7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 21 Apr 2003 13:07:01 +0000 Subject: [PATCH] Syntax fix for SQL. --- plugins/Quotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Quotes.py b/plugins/Quotes.py index dee340378..68940c074 100644 --- a/plugins/Quotes.py +++ b/plugins/Quotes.py @@ -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: