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:
parent
6d7bfd7b37
commit
336e2bbc5e
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue