qa/createBlogReport.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit a7c7837108597c70e491ef1f901866477b8acab9
Author:     Xisco Fauli <[email protected]>
AuthorDate: Wed Nov 6 18:00:01 2019 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Nov 6 18:00:49 2019 +0100

    QA: this might cause a KeyError

diff --git a/qa/createBlogReport.py b/qa/createBlogReport.py
index 689b846..d729f07 100755
--- a/qa/createBlogReport.py
+++ b/qa/createBlogReport.py
@@ -298,16 +298,16 @@ def analyze_bugzilla_data(statList, bugzillaData, cfg):
                             addedResolution = change['added']
                             removedResolution = change['removed']
 
+                            if isResolved and removedResolution:
+                                
statList['resolvedStatuses'][removedResolution] -= 1
+                                isResolved = False
+
                             if addedResolution:
                                 if addedResolution not in 
statList['resolvedStatuses']:
                                     
statList['resolvedStatuses'][addedResolution] = 0
                                 statList['resolvedStatuses'][addedResolution] 
+= 1
                                 isResolved = True
 
-                            if isResolved and removedResolution:
-                                
statList['resolvedStatuses'][removedResolution] -= 1
-                                isResolved = False
-
                             if addedResolution == 'FIXED':
                                 fixedBugs[rowId] = actionDate
                                 isFixed = True
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to