From a8cfc2fcad8de634617b8e297a78d738e1b8a337 Mon Sep 17 00:00:00 2001 From: Filip Szweda <68189467+filip-szweda@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:52:09 +0200 Subject: [PATCH] Update src/routers/scene_router.py --- src/routers/scene_router.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routers/scene_router.py b/src/routers/scene_router.py index 6bcb039..ab8c247 100644 --- a/src/routers/scene_router.py +++ b/src/routers/scene_router.py @@ -146,6 +146,7 @@ async def get_ranking(): @router.get("/player-agents/{player_id}") async def get_agents_from_player_list(player_id: str): logger.debug(f"Starting to get agents for player {player_id}") + player = state.scene.get_player(player_id) if player is None: logger.warning(f"Player with id: {player_id} does not exist")