[Libreoffice-commits] dev-tools.git: esc-reporting/esc-analyze.py

Xisco Fauli anistenis at gmail.com
Sun Dec 11 23:32:19 UTC 2016


 esc-reporting/esc-analyze.py |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit fd8ba67070f2f20cba6419f9ddca1d130ca541e7
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Mon Dec 12 00:30:58 2016 +0100

    needsUXEval can be added or removed along other keywords

diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index 8332a41..28af252 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -381,15 +381,15 @@ def analyze_ui(statList, openhubData, gerritData, gitData, bugzillaData, cfg):
         email = util_check_mail('*UNKNOWN*', change['who'], statList, cfg['contributor']['combine-email'])
         xDate = datetime.datetime.strptime(change['when'], "%Y-%m-%dT%H:%M:%SZ")
         for entry in change['changes']:
-          if entry['added'] == 'needsUXEval':
-            st = 'added'
-          elif entry['removed'] == 'needsUXEval':
-            st = 'removed'
-          else:
-            st = None
-          if not st is None:
-            util_build_period_stat(cfg, statList, xDate, email, st, 'reviewer', base='ui')
-
+          keywordsAdded = entry['added'].split(", ")
+          for keyword in keywordsAdded:
+            if keyword == 'needsUXEval':
+              util_build_period_stat(cfg, statList, xDate, email, 'added', 'reviewer', base='ui')
+
+          keywordsRemoved = entry['removed'].split(", ")
+          for keyword in keywordsRemoved:
+            if keyword == 'needsUXEval':
+              util_build_period_stat(cfg, statList, xDate, email, 'removed', 'reviewer', base='ui')
 
 def analyze_qa(statList, openhubData, gerritData, gitData, bugzillaData, cfg):
     print("qa: analyze bugzilla", flush=True)


More information about the Libreoffice-commits mailing list