From f560f7d2d131d299beff408ae4773ea7ab554543 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 30 Oct 2011 00:30:31 -0400 Subject: [PATCH] Please don't be mad at me. --- 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 eda38ef..ff71578 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -100,7 +100,7 @@ class Task(BaseTask): chart = "{{{0}|{1}}}".format(self.tl_header, chart_title) query = "SELECT * FROM page JOIN row ON page_id = row_id WHERE row_chart = ?" - with self.conn(oursql.DictCursor).cursor() as cursor: + with self.conn.cursor(oursql.DictCursor) as cursor: cursor.execute(query, chart_id) for page in cursor: chart += "\n" + self.compile_chart_row(page)