From d815ea2bbf18b25f3ad0a5d469c2028dbbd2383d Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Wed, 13 Nov 2024 00:23:18 +0100 Subject: Formatted the code with black --- src/match_up/model.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/match_up') diff --git a/src/match_up/model.py b/src/match_up/model.py index 2bd98fc..c5a0af9 100644 --- a/src/match_up/model.py +++ b/src/match_up/model.py @@ -146,7 +146,12 @@ class PlayerList: return DisplayPlayer(player) def get_all_players(self) -> list[Player]: - all_players = [DisplayPlayer(p) for p in self.session.query(Player).order_by(Player.first, Player.last).all()] + all_players = [ + DisplayPlayer(p) + for p in self.session.query(Player) + .order_by(Player.first, Player.last) + .all() + ] return all_players def get_possible_game_count(self) -> int: @@ -156,7 +161,10 @@ class PlayerList: def get_players(self, rounds: int = 0) -> list[Player]: active_players = ( - self.session.query(Player).order_by(Player.first, Player.last).filter(not_(Player.status == 0)).all() + self.session.query(Player) + .order_by(Player.first, Player.last) + .filter(not_(Player.status == 0)) + .all() ) low_guests = [ Player( @@ -195,7 +203,7 @@ class PlayerList: def increment_game_count(self, player_ids: list[int]): return NotImplementedError() - + def reset_game_count(self): return NotImplementedError() -- cgit v1.3.1