[Libreoffice-commits] dev-tools.git: esc-reporting/esc-report.py
Xisco Fauli
anistenis at gmail.com
Thu Jan 5 11:23:38 UTC 2017
esc-reporting/esc-report.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 9fdfa5137d3fe73030987a0daa5057f36afb4545
Author: Xisco Fauli <anistenis at gmail.com>
Date: Thu Jan 5 12:20:36 2017 +0100
Display first part of the email if username is unkown
diff --git a/esc-reporting/esc-report.py b/esc-reporting/esc-report.py
index c3b4b9d..46899c7 100755
--- a/esc-reporting/esc-report.py
+++ b/esc-reporting/esc-report.py
@@ -404,6 +404,8 @@ def report_qa():
for item in top10reporters:
if statList['people'][item]['qa']['1week']['owner'] == 0:
break
+ if not statList['people'][item]['name'] or statList['people'][item]['name'] == '*UNKNOWN*':
+ statList['people'][item]['name'] = statList['people'][item]['email'].split('@')[0]
print(' {0:{2}s} {1:3d}'.format(
statList['people'][item]['name'], statList['people'][item]['qa']['1week']['owner'],
max_width), file=fp)
@@ -421,6 +423,8 @@ def report_qa():
for item in top10fixers:
if statList['people'][item]['qa']['1week']['fixed'] == 0:
break
+ if not statList['people'][item]['name'] or statList['people'][item]['name'] == '*UNKNOWN*':
+ statList['people'][item]['name'] = statList['people'][item]['email'].split('@')[0]
print(' {0:{2}s} {1:3d}'.format(
statList['people'][item]['name'], statList['people'][item]['qa']['1week']['fixed'],
max_width), file=fp)
@@ -440,6 +444,8 @@ def report_qa():
for item in top10bisected:
if statList['people'][item]['qa']['1week']['bisected'] == 0:
break
+ if not statList['people'][item]['name'] or statList['people'][item]['name'] == '*UNKNOWN*':
+ statList['people'][item]['name'] = statList['people'][item]['email'].split('@')[0]
print(' {0:{2}s} {1:3d}'.format(
statList['people'][item]['name'], statList['people'][item]['qa']['1week']['bisected'],
max_width), file=fp)
@@ -458,6 +464,8 @@ def report_qa():
for item in top10bibisected:
if statList['people'][item]['qa']['1week']['bibisected'] == 0:
break
+ if not statList['people'][item]['name'] or statList['people'][item]['name'] == '*UNKNOWN*':
+ statList['people'][item]['name'] = statList['people'][item]['email'].split('@')[0]
print(' {0:{2}s} {1:3d}'.format(
statList['people'][item]['name'], statList['people'][item]['qa']['1week']['bibisected'],
max_width), file=fp)
@@ -476,6 +484,8 @@ def report_qa():
for item in top10regression:
if statList['people'][item]['qa']['1week']['regression'] == 0:
break
+ if not statList['people'][item]['name'] or statList['people'][item]['name'] == '*UNKNOWN*':
+ statList['people'][item]['name'] = statList['people'][item]['email'].split('@')[0]
print(' {0:{2}s} {1:3d}'.format(
statList['people'][item]['name'], statList['people'][item]['qa']['1week']['regression'],
max_width), file=fp)
@@ -495,6 +505,8 @@ def report_qa():
for item in top10backtrace:
if statList['people'][item]['qa']['1week']['backtrace'] == 0:
break
+ if not statList['people'][item]['name'] or statList['people'][item]['name'] == '*UNKNOWN*':
+ statList['people'][item]['name'] = statList['people'][item]['email'].split('@')[0]
print(' {0:{2}s} {1:3d}'.format(
statList['people'][item]['name'], statList['people'][item]['qa']['1week']['backtrace'],
max_width), file=fp)
More information about the Libreoffice-commits
mailing list