mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-27 13:31:08 -05:00
Syntax fix for SQL.
This commit is contained in:
parent
5aa9beacfb
commit
c39fba7b0b
@ -141,7 +141,7 @@ class Quotes(ChannelDBHandler, callbacks.Privmsg):
|
|||||||
channel = privmsgs.getChannel(msg, args)
|
channel = privmsgs.getChannel(msg, args)
|
||||||
db = self.getDb(channel)
|
db = self.getDb(channel)
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
cursor.execute("""SELECT (id, quote) FROM quotes
|
cursor.execute("""SELECT id, quote FROM quotes
|
||||||
ORDER BY random()
|
ORDER BY random()
|
||||||
LIMIT 1""")
|
LIMIT 1""")
|
||||||
if cursor.rowcount != 1:
|
if cursor.rowcount != 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user