From 031660bf573e79cece82b3aab281daff61531857 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 8 Nov 2011 17:21:59 -0500 Subject: [PATCH] Fix title thing again. --- bot/tasks/afc_statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index 354e2de..8edd5a3 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -270,9 +270,10 @@ class Task(BaseTask): if not title: return + title = title.replace("_", " ") query = "SELECT page_id, page_modify_oldid FROM page WHERE page_title = ?" with self.conn.cursor() as cursor: - cursor.execute(query, (title.replace("_", " "),)) + cursor.execute(query, (title,)) try: pageid, oldid = cursor.fetchall()[0] except IndexError: