Pārlūkot izejas kodu

query -> cursor

tags/v0.1^2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
285ad02cad
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      earwigbot/tasks/drn_clerkbot.py

+ 1
- 1
earwigbot/tasks/drn_clerkbot.py Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt