Skip to content

Commit

Permalink
se agrega nombre del player objetivo del analisis
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeluduena committed Nov 10, 2023
1 parent e4c6040 commit 5e9cfc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routers/games/action_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ 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,
name=c.name,
description=c.description
) for c in objective_player.hand]

result['objective_player_name'] = objective_player.name
return result


Expand Down

0 comments on commit 5e9cfc8

Please sign in to comment.