filter bookmark out of teams
This commit is contained in:
parent
2718f79c19
commit
e22a1b3345
|
@ -116,15 +116,17 @@ class Draft:
|
||||||
|
|
||||||
def get_teams(self):
|
def get_teams(self):
|
||||||
teams = {}
|
teams = {}
|
||||||
|
if self._active_participant != BOOKMARK:
|
||||||
teams[self._active_participant.handle] = self._active_participant.team
|
teams[self._active_participant.handle] = self._active_participant.team
|
||||||
for participant in self._participants:
|
for participant in self._participants:
|
||||||
|
if participant != BOOKMARK:
|
||||||
teams[participant.handle] = participant.team
|
teams[participant.handle] = participant.team
|
||||||
return teams
|
return teams
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# extremely robust testing OC do not steal
|
# extremely robust testing OC do not steal
|
||||||
# DRAFT_ROUNDS = 3
|
DRAFT_ROUNDS = 3
|
||||||
draft = Draft.make_draft()
|
draft = Draft.make_draft()
|
||||||
draft.add_participant('@bluh', 'Bluhstein Bluhs', 'bluh bluh bluh')
|
draft.add_participant('@bluh', 'Bluhstein Bluhs', 'bluh bluh bluh')
|
||||||
draft.add_participant('@what', 'Barcelona IDK', 'huh')
|
draft.add_participant('@what', 'Barcelona IDK', 'huh')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user