From 5e9cfc8f50637b004421edef5ae7b938739d3d8b Mon Sep 17 00:00:00 2001 From: ezeluduena Date: Fri, 10 Nov 2023 11:46:11 -0300 Subject: [PATCH] se agrega nombre del player objetivo del analisis --- app/routers/games/action_functions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routers/games/action_functions.py b/app/routers/games/action_functions.py index ab95db7..a740de3 100644 --- a/app/routers/games/action_functions.py +++ b/app/routers/games/action_functions.py @@ -79,7 +79,8 @@ def process_flamethrower_card(game: Game, player: Player, objective_player: Play @db_session def process_analysis_card(game: Game, player: Player, objective_player: Player): - result = [CardResponse(id=c.id, + result = {} + result['cards'] = [CardResponse(id=c.id, number=c.number, type=c.type, subtype=c.subtype, @@ -87,6 +88,7 @@ def process_analysis_card(game: Game, player: Player, objective_player: Player): description=c.description ) for c in objective_player.hand] + result['objective_player_name'] = objective_player.name return result