diff display_issues_demo.py @ 25:7161ce4e7ab1

The web-based display is dynamically generated. * All graphs are passed in one object. All graphs are passed in one object. The graphs are generated iteratiev and assigned a color. * roundup_cc.py can count how many issues are in which state.
author Magnus Schieder <mschieder@intevation.de>
date Mon, 12 Nov 2018 18:03:26 +0100
parents 89469aa41fe1
children 761ee2351f58
line wrap: on
line diff
--- a/display_issues_demo.py	Fri Nov 02 17:06:45 2018 +0100
+++ b/display_issues_demo.py	Mon Nov 12 18:03:26 2018 +0100
@@ -16,6 +16,8 @@
 import argparse
 from display_issues import *
 
+STATES = "unread, deferred, chatting, need_eg, in_progress, testing, done_cbb, resolved"
+
 parser = argparse.ArgumentParser()
 parser.add_argument("config_file", type=str, metavar="[config file]")
 args = parser.parse_args()
@@ -25,9 +27,20 @@
 
 db = config.get("DB", "DatabaseFile")
 keywords = config.get("SEARCH", "Keywords", fallback="")
+
+
+
 status = config.get("SEARCH", "Status", fallback="")
 columns = config.get("SEARCH", "Columns", fallback="critical, urgent, bug, feature, wish")
 noPrio = config.get("SEARCH", "IncludeNoPrio", fallback=False)
+search = config.get("SEARCH", "Search", fallback="prio")
+if search == "status":
+    if status == "":
+        columns = STATES
+    else:
+        columns = status
+    noPrio = False
+
 if noPrio:
     columns += ", None"
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)