Files
claudetools/.alis_verify.py
Howard Enos 91e95b1e4d sync: auto-sync from HOWARD-HOME at 2026-06-29 22:26:40
Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-06-29 22:26:40
2026-06-29 22:27:09 -07:00

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')}")