浏览代码

Implement get_signatures_from_db().

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

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

@@ -327,7 +327,10 @@ class DRNClerkBot(Task):
return [(username, timestamp_datetime)...]

def get_signatures_from_db(self, conn, case):
raise NotImplementedError() # TODO
query = "SELECT signature_username, signature_timestamp FROM signature WHERE signature_case = ?"
with conn.cursor() as cursor:
cursor.execute(query, (case.id,))
return cursor.fetchall()

def build_talk_notice(self, status):
param = self.ALIASES[status][0]


正在加载...
取消
保存