From eae919e5b213d03d29b9103b8db2534e506e81d1 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 4 Oct 2023 23:34:36 +0300 Subject: [PATCH] Digging out failed name recognition --- core/views/scans.py | 4 ++-- 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)