浏览代码

query -> cursor

tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
285ad02cad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/tasks/drn_clerkbot.py

+ 1
- 1
earwigbot/tasks/drn_clerkbot.py 查看文件

@@ -549,7 +549,7 @@ class DRNClerkBot(Task):
query = "SELECT case_title, case_status, case_file_time FROM cases"
with conn.cursor(oursql.DictCursor) as cursor:
cursor.execute(query)
for case in query:
for case in cursor:
if case["case_status"] != self.STATUS_UNKNOWN:
chart += self.compile_row(case)
chart += "{{" + self.tl_chart_footer + "}}"


正在加载...
取消
保存