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)