Jon Solow
commited on
Commit
•
5f5f0b2
1
Parent(s):
8ee1dd7
Dont show players for total
Browse files
src/pages/11_Scoreboard.py
CHANGED
@@ -75,13 +75,14 @@ def get_roster_html_str(
|
|
75 |
week: int, user_map: dict[str, PlayerOption], user_multipliers: dict[int, dict[str, int]]
|
76 |
) -> str:
|
77 |
players_str = ""
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
85 |
roster_str = f"""<div className='user__roster'>
|
86 |
{players_str}
|
87 |
</div>"""
|
|
|
75 |
week: int, user_map: dict[str, PlayerOption], user_multipliers: dict[int, dict[str, int]]
|
76 |
) -> str:
|
77 |
players_str = ""
|
78 |
+
if week != 5:
|
79 |
+
for pos_label in POSITION_LABELS:
|
80 |
+
week_pos_label = f"{week}-{pos_label}"
|
81 |
+
player = user_map.get(week_pos_label, PlayerOption.empty_player(week=week))
|
82 |
+
player_stats = get_stats_map().get(week, {}).get(player.gsis_id, {})
|
83 |
+
player_multiplier = user_multipliers.get(week, {}).get(player.gsis_id, 1)
|
84 |
+
player_score = get_scores_map().get(week, {}).get(player.gsis_id, 0.0)
|
85 |
+
players_str += get_player_html_str(player, player_stats, player_score, player_multiplier)
|
86 |
roster_str = f"""<div className='user__roster'>
|
87 |
{players_str}
|
88 |
</div>"""
|