diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-04 23:34:36 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-04 23:34:36 +0300 |
commit | eae919e5b213d03d29b9103b8db2534e506e81d1 (patch) | |
tree | 015cd0b92f84b6c19b6910d2d873cd862fb9a670 | |
parent | 6950fc1d1d2e6f8154da4d3b766c507d1a158344 (diff) | |
download | troggle-eae919e5b213d03d29b9103b8db2534e506e81d1.tar.gz troggle-eae919e5b213d03d29b9103b8db2534e506e81d1.tar.bz2 troggle-eae919e5b213d03d29b9103b8db2534e506e81d1.zip |
Digging out failed name recognition
-rw-r--r-- | core/views/scans.py | 4 | ||||
-rw-r--r-- | parsers/people.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/views/scans.py b/core/views/scans.py index 83f74fe..4159618 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -211,9 +211,9 @@ def walletslistperson(request, slug): pass else: wurl = f"/walletedit/{w.walletname.replace('#',':')}" - message = f"{w} name '{n}' NOT found with GetPersonExpeditionNameLookup on {year} ?!" + message = f"{w} name '{n.lower()}' NOT found in GetPersonExpeditionNameLookup({year}) ?!" print(message) - DataIssue.objects.update_or_create(parser="scans", message=message, url=wurl) + DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl) for w in manywallets: fillblankpeople(w) diff --git a/parsers/people.py b/parsers/people.py index 24e8378..8cbe630 100644 --- a/parsers/people.py +++ b/parsers/people.py @@ -312,6 +312,8 @@ def GetPersonExpeditionNameLookup(expedition): if f == "Michael".lower(): possnames += apply_variations("Mike", l) + if f == "Mike".lower(): + possnames += apply_variations("Michael", l) if f == "David".lower(): possnames += apply_variations("Dave", l) |