瀏覽代碼

Forgot to give cursor.execute()'s params as a tuple.

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
32e51f90e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bot/tasks/afc_statistics.py

+ 1
- 1
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)



Loading…
取消
儲存