diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-23 22:54:46 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-23 22:54:46 +0300 |
commit | 33477f2b40a5e88379d2d05cfc5356afdbb06269 (patch) | |
tree | 62d029458a69991bfe4de4a6a27d049696f28b39 /core/views/scans.py | |
parent | b522899216695187f70f8c35aef6c962124d3308 (diff) | |
download | troggle-33477f2b40a5e88379d2d05cfc5356afdbb06269.tar.gz troggle-33477f2b40a5e88379d2d05cfc5356afdbb06269.tar.bz2 troggle-33477f2b40a5e88379d2d05cfc5356afdbb06269.zip |
refactoring duplicate code
Diffstat (limited to 'core/views/scans.py')
-rw-r--r-- | core/views/scans.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/core/views/scans.py b/core/views/scans.py index 2f7c843..0143bea 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -174,23 +174,17 @@ def parse_name_list(w): crew = GetPersonExpeditionNameLookup(expo) for n in namelist: - # if n.lower().startswith("lydia"): - # print(f"{w} {n=} ") - # for x in crew: - # if x.lower()==n.lower(): - # print(f"{w} {n=} {x=}") - if n.lower() in crew: peeps.add(crew[n.lower()].person) else: - if n.startswith("*"): #ignore people flagged as guests or not-expo anyway, such as ARGE + if check := n.startswith("*"): #ignore people flagged as guests or not-expo anyway, such as ARGE continue nobod = n.lower() if nobod == "unknown" or nobod == "nobody" or nobod == " " or nobod == "": continue else: wurl = f"/walletedit/{w.walletname.replace('#',':')}" - message = f"{w} name '{n.lower()}' NOT found in GetPersonExpeditionNameLookup({w.year()}) ?!" + message = f"{w} name '{n.lower()}' NOT found in GetPersonExpeditionNameLookup({w.year()}) n.startswith* = {check} ?!" print(message) DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl) return peeps |