summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2017-01-05 12:20:36 +0100
committerXisco Fauli <anistenis@gmail.com>2017-01-05 12:20:36 +0100
commit9fdfa5137d3fe73030987a0daa5057f36afb4545 (patch)
tree6602db960bbdcc9f8155151b8ba3daca41558700
parentfc1c42b44655cd207fc3aa259556181c0f44abd4 (diff)
Display first part of the email if username is unkown
-rwxr-xr-xesc-reporting/esc-report.py12
1 files changed, 12 insertions, 0 deletions
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)