From b358b1fd0bef5a84cbe3a3b83df6dd55ee7c886f Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Sat, 25 Aug 2012 23:32:55 +0300 Subject: [PATCH] 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. --- tasks/drn_clerkbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/drn_clerkbot.py b/tasks/drn_clerkbot.py index d2a4204..fc6edc0 100644 --- a/tasks/drn_clerkbot.py +++ b/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,))