From 1391eece7481379bd093d3a6952955716047301d Mon Sep 17 00:00:00 2001 From: Joe Vessella Date: Mon, 5 Feb 2024 21:22:56 +0000 Subject: [PATCH] Fix AttributeError in get_team_game_session. --- gamebrain/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamebrain/db.py b/gamebrain/db.py index 1e04354..6d2ab99 100644 --- a/gamebrain/db.py +++ b/gamebrain/db.py @@ -288,7 +288,7 @@ async def get_team_game_session(team_id: str): return ( await DBManager.get_rows( DBManager.GameSession, - DBManager.GameSession.id == team.game_session_id, + DBManager.GameSession.id == team["game_session_id"], DBManager.GameSession.active == True, ) ).pop()