From 3ddc088764110c87e67ef6a4fe1d417ab3c16857 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 11 Apr 2003 21:00:51 +0000 Subject: [PATCH] Forgot to move two lines under the fix. --- plugins/Markov.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Markov.py b/plugins/Markov.py index 3c2bb3545..5e0b397ae 100644 --- a/plugins/Markov.py +++ b/plugins/Markov.py @@ -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)