Update check_chair.py for per-schedule chairs

Change-Id: I4f7f52ed5c055ccf8855cfda9653783cad1133c5
This commit is contained in:
Tim Burke 2025-04-09 15:21:31 -07:00
parent f61871fa02
commit 3b4db8be05

View File

@ -59,11 +59,21 @@ A tool that checks a meeting chair matches the canonical format.
meetings = meeting.load_meetings(args.yaml_dir)
return_code = 0
for m in meetings:
ok, msg = check_chair(m.chair)
if not ok:
return_code = 1
print(m.filefrom)
print(msg.rstrip())
if m.chair is not None:
ok, msg = check_chair(m.chair)
if not ok:
return_code = 1
print(m.filefrom)
print(msg.rstrip())
for s in m.schedules:
if s.chair == m.chair:
# already checked
continue
ok, msg = check_chair(s.chair)
if not ok:
return_code = 1
print(m.filefrom)
print(msg.rstrip())
return return_code