Syntrex commited on
Commit
b2d5d17
·
verified ·
1 Parent(s): 32c3473

Update visualization/game_cards.py

Browse files
Files changed (1) hide show
  1. visualization/game_cards.py +3 -0
visualization/game_cards.py CHANGED
@@ -118,6 +118,9 @@ def render_game_card(game: dict[str, Any]) -> None:
118
  second_on = bool(game.get("runner_on_2b", False))
119
  third_on = bool(game.get("runner_on_3b", False))
120
 
 
 
 
121
  last_play = _safe_text(game.get("last_play"))
122
  last_pitch = _safe_text(game.get("last_pitch"))
123
  pitch_type = _safe_text(game.get("pitch_type"))
 
118
  second_on = bool(game.get("runner_on_2b", False))
119
  third_on = bool(game.get("runner_on_3b", False))
120
 
121
+ away_wp = game.get("away_win_prob")
122
+ home_wp = game.get("home_win_prob")
123
+
124
  last_play = _safe_text(game.get("last_play"))
125
  last_pitch = _safe_text(game.get("last_pitch"))
126
  pitch_type = _safe_text(game.get("pitch_type"))