Skip to content

Commit

Permalink
Update src/data_models/Game.py
Browse files Browse the repository at this point in the history
counter init ref

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Alex-Kopylov and coderabbitai[bot] authored Apr 6, 2024
1 parent caba2a7 commit f924ab3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/data_models/Game.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class Game(BaseModel):
creator_id: int

def extract_player_outcomes(cls, results: Tuple[PollResult, ...]) -> Counter:
outcomes = [outcome.get_answer_as_text() for outcome in results]
return Counter(outcomes)
return Counter(outcome.get_answer_as_text() for outcome in results)

def remove_spectators(cls, outcomes_counter: Counter) -> None:
outcomes_counter.pop("👀 SPECTATOR | NOT A PLAYER 👀", None)
Expand Down

0 comments on commit f924ab3

Please sign in to comment.