瀏覽代碼

Make chart generation faster.

pull/15/head
Ben Kurtovic 11 年之前
父節點
當前提交
51643149e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      tasks/afc_statistics.py

+ 1
- 1
tasks/afc_statistics.py 查看文件

@@ -159,7 +159,7 @@ class AFCStatistics(Task):
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,))
for page in cursor:
for page in cursor.fetchall():
chart += "\n" + self.compile_chart_row(page)

chart += "\n{{" + self.tl_footer + "}}"


Loading…
取消
儲存