mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01: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)
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user