filter bookmark out of teams

This commit is contained in:
joe 2021-01-03 15:30:00 -08:00
parent 2718f79c19
commit e22a1b3345

View File

@ -116,15 +116,17 @@ class Draft:
def get_teams(self):
teams = {}
if self._active_participant != BOOKMARK:
teams[self._active_participant.handle] = self._active_participant.team
for participant in self._participants:
if participant != BOOKMARK:
teams[participant.handle] = participant.team
return teams
if __name__ == '__main__':
# extremely robust testing OC do not steal
# DRAFT_ROUNDS = 3
DRAFT_ROUNDS = 3
draft = Draft.make_draft()
draft.add_participant('@bluh', 'Bluhstein Bluhs', 'bluh bluh bluh')
draft.add_participant('@what', 'Barcelona IDK', 'huh')