Skip to content

Commit 336e2bb

Browse files
committed
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
1 parent 6d7bfd7 commit 336e2bb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ietf/review/import_from_review_tool.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ def parse_timestamp(t):
9393
if created:
9494
print "created email", email
9595

96+
if "@" in email.person.name and row.name:
97+
old_name = email.person.name
98+
email.person.name = row.name
99+
email.person.ascii = row.name
100+
email.person.save()
101+
print "fixed name of", email, old_name, "->", row.name
102+
96103
known_personnel[row.login] = email
97104

98105
if "secretary" in row.permissions:

0 commit comments

Comments
 (0)