qa/bugzillaChecker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 13b6f4d79b44a22d0c02b37886e6f433857ce657 Author: Xisco Fauli <[email protected]> Date: Mon Mar 12 11:26:22 2018 +0100 QA: Fix problem with duplicated entries diff --git a/qa/bugzillaChecker.py b/qa/bugzillaChecker.py index 0bf58e2..0a73fae 100755 --- a/qa/bugzillaChecker.py +++ b/qa/bugzillaChecker.py @@ -99,6 +99,7 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg): addassignedValue = None movedToNew = False movedToNewValue = None + addAssigned = False for action in row['history']: actionMail = action['who'] @@ -260,6 +261,7 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg): if removedAssignee == "[email protected]" and \ row['assigned_to'] != '[email protected]' and \ ( rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'): + addAssigned = True util_add_to_result(lResults, 'change_status_assigned', resultValue) if addedAssignee == "[email protected]" and \ row['assigned_to'] == '[email protected]' and rowStatus == 'ASSIGNED': @@ -306,8 +308,8 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg): util_add_to_result(lResults, 'is_reopened', reopenValue) #In case the reporter assigned the bug to himself at creation time - if creationDate >= cfg['reportPeriod'] and row['assigned_to'] != '[email protected]' and \ - (rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'): + if not addAssigned and creationDate >= cfg['reportPeriod'] and \ + row['assigned_to'] != '[email protected]' and (rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'): value = [ rowId, row['creation_time'], row['assigned_to'] ] util_add_to_result(lResults, 'change_status_assigned', value) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
