[Libreoffice-commits] dev-tools.git: qa/createWikiStats.py

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 28 14:16:19 UTC 2020


 qa/createWikiStats.py |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 0dfd184c377f56b632936c6bc45de3e0851f4c15
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Sep 28 16:14:07 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Sep 28 16:15:32 2020 +0200

    QA: try to use the most recent author name
    
    Change-Id: I33b1dcbbadda0cdbb7af5148dff1225a22241000

diff --git a/qa/createWikiStats.py b/qa/createWikiStats.py
index bc6e839..c7550e3 100755
--- a/qa/createWikiStats.py
+++ b/qa/createWikiStats.py
@@ -110,6 +110,9 @@ def analyze_bugzilla_wiki_stats(statList, bugzillaData, cfg):
 
             creatorMail = row['creator']
 
+            common.util_check_bugzilla_mail(
+                    statList, creatorMail, row['creator_detail']['real_name'], creationDate, rowId)
+
             whiteboard_list = row['whiteboard'].split(' ')
             bugTargets = []
             for whiteboard in whiteboard_list:
@@ -226,8 +229,7 @@ def analyze_bugzilla_wiki_stats(statList, bugzillaData, cfg):
 
             #this way we can get the users' name
             for person in row['cc_detail']:
-                if person['email'] not in statList['people']:
-                    statList['people'][person['email']] = person['real_name']
+                common.util_check_bugzilla_mail(statList, person['email'], person['real_name'])
 
     statList['stat']['newest'] = statNewDate.strftime("%Y-%m-%d")
     statList['stat']['oldest'] = statOldDate.strftime("%Y-%m-%d")
@@ -328,7 +330,7 @@ def create_wikimedia_table_by_target(cfg, statList):
         for kP, vP in vT['people'].items():
             name = ''
             if vP['email'] in statList['people']:
-                name = statList['people'][kP]
+                name = statList['people'][kP]['name']
             if not name:
                 name = vP['email'].split('@')[0]
 
@@ -376,7 +378,7 @@ def create_wikimedia_table_by_period(cfg, statList):
         for kP, vP in vT['people'].items():
             name = ''
             if vP['email'] in statList['people']:
-                name = statList['people'][kP]
+                name = statList['people'][kP]['name']
             if not name:
                 name = vP['email'].split('@')[0]
 


More information about the Libreoffice-commits mailing list