Update Project Liasons for new TC roster

New TC members, new project Liasons - a simple run of
`python ./tools/assign_liaisons.py --replace-all` making this a random
assignment of TC member -> project.

Change-Id: Ib1e1c44c3fe5c5509dbdcb76b2db88323d8c64e5
Signed-off-by: Graham Hayes <gr@ham.ie>
This commit is contained in:
Graham Hayes
2019-09-05 13:05:21 +01:00
parent 78fcf53cc8
commit 9e77ed6816
2 changed files with 124 additions and 123 deletions

View File

@@ -58,14 +58,15 @@ def main():
nic: 0
for nic in member_nics
})
for _, team in project_data.items():
for member in team.get('liaisons', []):
member_counts.update({member: 1})
if not args.replace_all:
for _, team in project_data.items():
for member in team.get('liaisons', []):
member_counts.update({member: 1})
choices = []
for member, count in sorted(member_counts.items()):
choices.extend([member] * (assignments_per - count))
# Make sure we have a list in order that isn't assigning the same
# person to a team twice.