summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-12-21 13:26:54 +0100
committerXisco Fauli <anistenis@gmail.com>2016-12-21 13:26:54 +0100
commit392933ddca95e5abba1e09954ebbd8d906451cd0 (patch)
treeb3d88c543f758344462de13cbe063872699066d0
parentc5603e2c153be14184c36d2d3694facb34bf331a (diff)
Update user name if we find it
-rwxr-xr-xesc-reporting/esc-analyze.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index 2b2863c..3aa3930 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -232,6 +232,9 @@ def util_check_mail(name, mail):
statList['people'][mail] = util_create_person_gerrit(name, mail)
if mail == '*DUMMY*':
statList['people'][mail]['licenseOK'] = True
+ else:
+ if name and name != '*UNKNOWN*' and statList['people'][mail]['name'] == '*UNKNOWN*':
+ statList['people'][mail]['name'] = name
return mail