In case the review data contains a proper name for a person we already

know, use that - this prevents problems with email addresses being
embedded in review document names.
 - Legacy-Id: 12126
This commit is contained in:
Ole Laursen 2016-10-13 15:53:14 +00:00
parent 6d7bfd7b37
commit 336e2bbc5e

View file

@ -93,6 +93,13 @@ with db_con.cursor() as c:
if created:
print "created email", email
if "@" in email.person.name and row.name:
old_name = email.person.name
email.person.name = row.name
email.person.ascii = row.name
email.person.save()
print "fixed name of", email, old_name, "->", row.name
known_personnel[row.login] = email
if "secretary" in row.permissions: