diff --git a/main.py b/main.py index 6b42faa..97ef470 100755 --- a/main.py +++ b/main.py @@ -113,7 +113,7 @@ def tag(tagged: TaggedPlayer | TaggedPokemon) -> PlayerTag: TEAMS: dict[Player, Player] = {} -_logged_teams: list[Player] = [] +_logged_teams: set[Player] = set() def team(player: Player) -> Player: @@ -123,7 +123,7 @@ def team(player: Player) -> Player: else: if not player in _logged_teams and player: LOG.warning(f"missing team mapping for {player}") - _logged_teams.append(player) + _logged_teams.add(player) return player