Jon Solow
commited on
Commit
·
d52750c
1
Parent(s):
0045f00
Fix condition for showing score to be is int type
Browse files
src/pages/11_Scoreboard.py
CHANGED
@@ -98,7 +98,7 @@ def get_player_html_str(player_opt: PlayerOption, player_stats: dict[str, float]
|
|
98 |
else:
|
99 |
game_map = {}
|
100 |
game_status = game_map.get("status") or " "
|
101 |
-
if team_score := game_map.get("score"):
|
102 |
game_score = f"""{team_score} - {game_map.get("opponent_score")}"""
|
103 |
else:
|
104 |
game_score = " "
|
|
|
98 |
else:
|
99 |
game_map = {}
|
100 |
game_status = game_map.get("status") or " "
|
101 |
+
if isinstance((team_score := game_map.get("score")), int):
|
102 |
game_score = f"""{team_score} - {game_map.get("opponent_score")}"""
|
103 |
else:
|
104 |
game_score = " "
|