diff roundup_cc.py @ 26:761ee2351f58

Change the parameter read in. * The structure was changed and better names used.
author Magnus Schieder <mschieder@intevation.de>
date Tue, 13 Nov 2018 17:55:10 +0100
parents 7161ce4e7ab1
children e2864dabdb8c
line wrap: on
line diff
--- a/roundup_cc.py	Mon Nov 12 18:03:26 2018 +0100
+++ b/roundup_cc.py	Tue Nov 13 17:55:10 2018 +0100
@@ -39,7 +39,7 @@
 
     search = config.get("SEARCH", "Search", fallback="prio")
     if search == "prio":
-        list_of_columns = config.get("SEARCH", "Columns", fallback=PRIO).split(", ")
+        list_of_columns = config.get("SEARCH", "Priority", fallback=PRIO).split(", ")
         status = config.get("SEARCH", "Status", fallback="").split(", ")
         include_no_prio = config.getboolean("SEARCH", "IncludeNoPrio", fallback= False)
         if include_no_prio:
@@ -49,6 +49,10 @@
         list_of_columns = config.get("SEARCH", "Status", fallback=STATES).split(", ")
         status = [""]
 
+    else:
+        print("Incorrect [SEARCH]Search parameter. (prio, status)")
+        return
+
     select_all, select_where, create_db, insert_new = \
         rcd.build_sql_commands(list_of_columns)
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)