From 32e51f90e37cf7e557f1b76814dea248cfa20a88 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 30 Oct 2011 00:33:46 -0400 Subject: [PATCH] Forgot to give cursor.execute()'s params as a tuple. --- bot/tasks/afc_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index ff71578..728514c 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -101,7 +101,7 @@ class Task(BaseTask): query = "SELECT * FROM page JOIN row ON page_id = row_id WHERE row_chart = ?" with self.conn.cursor(oursql.DictCursor) as cursor: - cursor.execute(query, chart_id) + cursor.execute(query, (chart_id,)) for page in cursor: chart += "\n" + self.compile_chart_row(page)