esc-reporting/esc-analyze.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
New commits: commit fd8ba67070f2f20cba6419f9ddca1d130ca541e7 Author: Xisco Fauli <[email protected]> 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) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
