12 lines
710 B
Python
12 lines
710 B
Python
import json, re
|
|
def norm(s): return re.sub(r'[^a-z]','',(s or '').lower())
|
|
alis=json.load(open('.alis_staff.json'))
|
|
none_group=["Atwood","Baker","Fierros","Flores","Hogan","Huerta","Kariuki","Lopez","Mendoza","Reed","Tate","Williford"]
|
|
firstmap={"Flores":"Kasey","Fierros":"Diana"} # disambiguate (Richard Flores is Med Tech)
|
|
for sn in none_group:
|
|
cands=[s for s in alis if norm(sn) in norm(s.get('lastName','')) or norm(s.get('lastName','')) in norm(sn)]
|
|
print(f"AD '{sn}':")
|
|
if not cands: print(" (no ALIS staff with this surname)")
|
|
for c in cands:
|
|
print(f" ALIS: {c.get('firstName','')} {c.get('lastName','')} | job={c.get('jobRole') or '(none)'} | status={c.get('status')}")
|