mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Changed ISNULL(word) to word ISNULL.
This commit is contained in:
parent
13109d1f96
commit
c92386f7cf
@ -204,7 +204,7 @@ class Markov(callbacks.Privmsg, ChannelDBHandler):
|
||||
channel = privmsgs.getChannel(msg, args)
|
||||
db = self.getDb(channel)
|
||||
cursor = db.cursor()
|
||||
cursor.execute("""SELECT COUNT(*) FROM follows WHERE ISNULL(word)""")
|
||||
cursor.execute("""SELECT COUNT(*) FROM follows WHERE word ISNULL""")
|
||||
n = cursor.fetchone()[0]
|
||||
s = 'There are %s lasts in my Markov database for %s' % (n, channel)
|
||||
irc.reply(msg, s)
|
||||
|
Loading…
Reference in New Issue
Block a user