Skip to content

Commit

Permalink
Save session before teams (test).
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jvessella committed Feb 5, 2024
1 parent ca83d50 commit cb17e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gamebrain/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ async def store_game_session(
game_id=game_id,
active=True,
)
await DBManager.merge_rows([session_data])

for team_id in team_ids:
await store_team(team_id, game_session_id=session_data.id)

await store_players(players)

await DBManager.merge_rows([session_data])


async def get_team_game_session(team_id: str):
team = await get_team(team_id)
Expand Down

0 comments on commit cb17e31

Please sign in to comment.