Jon Solow
commited on
Commit
·
0f5112d
1
Parent(s):
459585e
Dont show score if no score
Browse files
src/pages/11_Scoreboard.py
CHANGED
@@ -91,7 +91,10 @@ def get_player_html_str(player_opt: PlayerOption, player_stats: dict[str, float]
|
|
91 |
|
92 |
game_map = get_schedule_with_live().get(player_opt.week, {}).get(player_opt.team, {})
|
93 |
game_status = " "
|
94 |
-
|
|
|
|
|
|
|
95 |
player_stats_str = get_player_stats_html_str(player_stats)
|
96 |
|
97 |
player_classes = "player"
|
|
|
91 |
|
92 |
game_map = get_schedule_with_live().get(player_opt.week, {}).get(player_opt.team, {})
|
93 |
game_status = " "
|
94 |
+
if team_score := game_map.get("score"):
|
95 |
+
game_score = f"""{team_score} - {game_map.get("opponent_score")}"""
|
96 |
+
else:
|
97 |
+
game_score = " "
|
98 |
player_stats_str = get_player_stats_html_str(player_stats)
|
99 |
|
100 |
player_classes = "player"
|