feat: order players by name
This commit is contained in:
parent
2d760cda16
commit
e8c788832c
2
main.py
2
main.py
@ -46,7 +46,7 @@ def add_players(players: list[Player]):
|
|||||||
|
|
||||||
def list_players():
|
def list_players():
|
||||||
with Session(engine) as session:
|
with Session(engine) as session:
|
||||||
statement = select(Player)
|
statement = select(Player).order_by(Player.name)
|
||||||
return session.exec(statement).fetchall()
|
return session.exec(statement).fetchall()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user