From 336e2bbc5e84ab59739537722d0e8682e6e8e222 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Thu, 13 Oct 2016 15:53:14 +0000 Subject: [PATCH] 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 --- ietf/review/import_from_review_tool.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ietf/review/import_from_review_tool.py b/ietf/review/import_from_review_tool.py index 220d18512..c1ee35629 100755 --- a/ietf/review/import_from_review_tool.py +++ b/ietf/review/import_from_review_tool.py @@ -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: