mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Changed word=NULL to ISNULL(word)
This commit is contained in:
parent
62a833f29a
commit
13109d1f96
@ -204,9 +204,9 @@ class Markov(callbacks.Privmsg, ChannelDBHandler):
|
|||||||
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 COUNT(*) FROM follows WHERE word=NULL""")
|
cursor.execute("""SELECT COUNT(*) FROM follows WHERE ISNULL(word)""")
|
||||||
n = cursor.fetchone()[0]
|
n = cursor.fetchone()[0]
|
||||||
s = 'There are %s follows in my Markov database for %s' % (n, channel)
|
s = 'There are %s lasts in my Markov database for %s' % (n, channel)
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user