Jon Solow
commited on
Commit
•
7858dd3
1
Parent(s):
535ec3b
Show player team and game time
Browse files
src/pages/10_Set_Your_Lineup.py
CHANGED
@@ -106,7 +106,10 @@ def format_player_option(player_opt: PlayerOption) -> str:
|
|
106 |
def display_player(player_opt: PlayerOption | None):
|
107 |
if player_opt:
|
108 |
if player_opt.headshot_url:
|
109 |
-
st.image(player_opt.headshot_url
|
|
|
|
|
|
|
110 |
|
111 |
|
112 |
def position_cell(
|
|
|
106 |
def display_player(player_opt: PlayerOption | None):
|
107 |
if player_opt:
|
108 |
if player_opt.headshot_url:
|
109 |
+
st.image(player_opt.headshot_url)
|
110 |
+
if player_opt.full_name:
|
111 |
+
st.write(player_opt.full_name)
|
112 |
+
st.write(f"{player_opt.team} - {player_opt.gametime.strftime('%-m/%-d %-I:%M %p')}")
|
113 |
|
114 |
|
115 |
def position_cell(
|