changeset 33:946b9f458fcc

Priorities with 'None' are not sorted out unintentionally
author Magnus Schieder <mschieder@intevation.de>
date Fri, 23 Nov 2018 17:10:29 +0100
parents 80bbd06fe8ec
children 916fa83b4144
files collect_issues.py
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/collect_issues.py	Fri Nov 23 16:13:24 2018 +0100
+++ b/collect_issues.py	Fri Nov 23 17:10:29 2018 +0100
@@ -117,12 +117,11 @@
     for issue in issue_csv:
         priority = issue[issue_csv.fieldnames[0]]
 
-        if priority in order_dict:
-            if priority.isdigit() == True :
-                quantities[order_dict[priority]] += 1
-            else: # no priority set
-                quantities[-1] += 1
-            #print("quantities : " + str(quantities))
+        if priority.isdigit() == True :
+            quantities[order_dict[priority]] += 1
+        else: # no priority set
+            quantities[-1] += 1
+        #print("quantities : " + str(quantities))
 
     return quantities
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)