Browse Source

query -> cursor

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
285ad02cad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/tasks/drn_clerkbot.py

+ 1
- 1
earwigbot/tasks/drn_clerkbot.py View File

@@ -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 + "}}"


Loading…
Cancel
Save