diff roundup_cc_display.py @ 31:9aca070c86bd

Add the filter 'priority' for the search by status.
author Magnus Schieder <mschieder@intevation.de>
date Thu, 22 Nov 2018 19:34:53 +0100
parents 8d86ba8dee42
children 80bbd06fe8ec
line wrap: on
line diff
--- a/roundup_cc_display.py	Thu Nov 22 14:07:55 2018 +0100
+++ b/roundup_cc_display.py	Thu Nov 22 19:34:53 2018 +0100
@@ -33,7 +33,7 @@
 
     search = config.get("SEARCH", "Search", fallback="prio")
     if search == "prio":
-        status = config.get("SEARCH", "Status", fallback="")
+        search_parameters = config.get("SEARCH", "Status", fallback="")
         columns = config.get("SEARCH", "Priority", fallback=PRIO)
         noPrio = config.get("SEARCH", "IncludeNoPrio", fallback=False)
         if noPrio:
@@ -41,7 +41,7 @@
 
     elif search == "status":
         columns = config.get("SEARCH", "Status", fallback=STATES)
-        status = ""
+        search_parameters = config.get("SEARCH", "Priority", fallback="")
 
     else:
         print("Incorrect [SEARCH]Search parameter. (prio, status)")
@@ -54,7 +54,7 @@
     #render_db_stats_as_html("./demo1.db", rcd.SELECT_ALL)
     render_db_stats_as_html(db,
             rcd.build_sql_select(columns).format("timestamp > date('now', '-2 month')"),
-            columns, status, keywords)
+            columns, search_parameters, keywords)
 
 if __name__ == '__main__':
     main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)