diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-05 14:45:46 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-05 14:45:46 +0300 |
commit | ed993761a17841bb9295b5a468c9c5716ba4ffb2 (patch) | |
tree | 4e8096c9a0eadeeacbd89952ab8552e45a109e75 /parsers/people.py | |
parent | fcfa59cdf7273c97c022fb1ba2b249f4199811ba (diff) | |
download | troggle-ed993761a17841bb9295b5a468c9c5716ba4ffb2.tar.gz troggle-ed993761a17841bb9295b5a468c9c5716ba4ffb2.tar.bz2 troggle-ed993761a17841bb9295b5a468c9c5716ba4ffb2.zip |
clean up small errors and debugging
Diffstat (limited to 'parsers/people.py')
-rw-r--r-- | parsers/people.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parsers/people.py b/parsers/people.py index 8cbe630..97793a6 100644 --- a/parsers/people.py +++ b/parsers/people.py @@ -265,10 +265,10 @@ def GetPersonExpeditionNameLookup(expedition): dellist = [] for personexpedition in personexpeditions: possnames = [] - f = unidecode(unescape(personexpedition.person.first_name.lower())) - l = unidecode(unescape(personexpedition.person.last_name.lower())) - full = unidecode(unescape(personexpedition.person.fullname.lower())) - n = unidecode(unescape(personexpedition.person.nickname.lower())) + f = unidecode(unescape(personexpedition.person.first_name.lower().strip())) + l = unidecode(unescape(personexpedition.person.last_name.lower().strip())) + full = unidecode(unescape(personexpedition.person.fullname.lower().strip())) + n = unidecode(unescape(personexpedition.person.nickname.lower().strip())) if full not in possnames: possnames.append(full) if n not in possnames: |