Forgot to move two lines under the fix.

This commit is contained in:
Jeremy Fincher 2003-04-11 21:00:51 +00:00
parent c282eadcc3
commit 3ddc088764
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ class Markov(callbacks.Privmsg, ChannelDBHandler):
second, follower)
cursor.execute("""SELECT id FROM pairs
WHERE first=%s AND second=%s""", second,follower)
id = int(cursor.fetchone()[0])
cursor.execute("""INSERT INTO follows VALUES (NULL, %s, NULL)""", id)
id = int(cursor.fetchone()[0])
cursor.execute("INSERT INTO follows VALUES (NULL, %s, NULL)", id)
db.commit()
return callbacks.Privmsg.doPrivmsg(self, irc, msg)