소스 검색

Support "collapsed" option in "compile_chart"

In "compile_chart" force the bot to add "|collapsed={{{collapsed|}}}" to the {{{DRN case status/header}}}, so that it can be shown collapsed.
pull/6/head
Dmitrij D. Czarkoff 12 년 전
부모
커밋
b358b1fd0b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      tasks/drn_clerkbot.py

+ 1
- 1
tasks/drn_clerkbot.py 파일 보기

@@ -696,7 +696,7 @@ class DRNClerkBot(Task):

def compile_chart(self, conn):
"""Actually generate the chart from the database."""
chart = "{{" + self.tl_chart_header + "|small={{{small|}}}}}\n"
chart = "{{" + self.tl_chart_header + "|small={{{small|}}}|collapsed={{{collapsed|}}}}}\n"
query = "SELECT * FROM cases WHERE case_status != ?"
with conn.cursor(oursql.DictCursor) as cursor:
cursor.execute(query, (self.STATUS_UNKNOWN,))


불러오는 중...
취소
저장