summaryrefslogtreecommitdiff
path: root/src/match_up/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/match_up/model.py')
-rw-r--r--src/match_up/model.py14
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()