diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-01-28 14:03:46 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-01-28 14:03:46 +0000 |
commit | d9a40696627b408170a0bb8f84fe18ae33a1feec (patch) | |
tree | 8f22879f7f76877d68194ecabcb4883069c1d99a /parsers/logbooks.py | |
parent | 9e71be8169e77ea71d080f3535ee0fce036cf838 (diff) | |
download | troggle-d9a40696627b408170a0bb8f84fe18ae33a1feec.tar.gz troggle-d9a40696627b408170a0bb8f84fe18ae33a1feec.tar.bz2 troggle-d9a40696627b408170a0bb8f84fe18ae33a1feec.zip |
moved aliases to people module, faster db too
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index bb592f3..1d23215 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -125,24 +125,7 @@ def GetTripPersons(trippeople, expedition, logtime_underground, tid=None): if tripperson and tripperson[0] != "*": tripperson = re.sub(rx_round_bracket, "", tripperson).strip() - # these aliases should be moved to people.py GetPersonExpeditionNameLookup(expedition) - if tripperson == "Wiggy": - tripperson = "Phil Wigglesworth" - if tripperson == "Animal": - tripperson = "Mike Richardson" - if tripperson == "MikeTA": - tripperson = "Mike Richardson" - if tripperson == "CavingPig": - tripperson = "Elaine Oliver" - if tripperson == "nobrotson": - tripperson = "Rob Watson" - if tripperson == "Tinywoman": - tripperson = "Nadia" - if tripperson == "tcacrossley": - tripperson = "Tom Crossley" - if tripperson == "Samouse1": - tripperson = "Todd Rye" - + # Whacky aliases all handled in GetPersonExpeditionNameLookup() personyear = GetPersonExpeditionNameLookup(expedition).get(tripperson.lower()) if not personyear: message = f" ! - {expedition.year} No name match for: '{tripperson}' in entry {tid=} for this expedition year." |