2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00

Digging out failed name recognition

This commit is contained in:
Philip Sargent 2023-10-04 23:34:36 +03:00
parent 6950fc1d1d
commit eae919e5b2
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)