diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2024-11-13 00:23:18 +0100 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2024-11-13 00:23:18 +0100 |
| commit | d815ea2bbf18b25f3ad0a5d469c2028dbbd2383d (patch) | |
| tree | c5e6c6c2719e71069d2ed99a09aea8c0740cdf55 /src/match_up/model.py | |
| parent | 6b791ee4d42e63a8125ec3f4f038128d2e88a079 (diff) | |
Formatted the code with black
Diffstat (limited to 'src/match_up/model.py')
| -rw-r--r-- | src/match_up/model.py | 14 |
1 files changed, 11 insertions, 3 deletions
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() |
