Reorganisation of code in the extract-email tool

This commit is contained in:
2010-12-02 10:58:36 +00:00
parent df029f32ad
commit c2df900c31

View File

@@ -33,8 +33,7 @@ for char in chars:
name = unicodedata.normalize('NFKD', char.name).encode('ASCII', 'ignore')
charname = re.sub('[^a-zA-Z0-9_-]+', '', name)
if char.eveaccount_set.all()[0].user:
email = char.eveaccount_set.all()[0].user.email
out[charname.lower()] = email
out[charname.lower()] = char.eveaccount_set.all()[0].user.email
for key in out: