Jon Solow
commited on
Commit
·
973503c
1
Parent(s):
1727748
Undo debugging
Browse files
src/pages/10_Set_Your_Lineup.py
CHANGED
@@ -89,7 +89,7 @@ def player_options_from_df(df_options) -> dict[str, dict[int, list[PlayerOption]
|
|
89 |
return options_map
|
90 |
|
91 |
|
92 |
-
|
93 |
def load_options():
|
94 |
df_rosters = get_weekly_rosters()
|
95 |
|
@@ -117,8 +117,6 @@ def load_options():
|
|
117 |
df_rosters["in_playoffs"] = df_rosters.apply(lambda x: x.team in PLAYOFFS_TEAMS[x.week], axis=1)
|
118 |
|
119 |
df_rosters = df_rosters[df_rosters.in_playoffs]
|
120 |
-
# st.dataframe(df_rosters)
|
121 |
-
st.write(df_rosters.position.unique())
|
122 |
player_options = player_options_from_df(df_rosters)
|
123 |
return player_options
|
124 |
|
|
|
89 |
return options_map
|
90 |
|
91 |
|
92 |
+
@st.cache_data(ttl=60 * 60 * 24)
|
93 |
def load_options():
|
94 |
df_rosters = get_weekly_rosters()
|
95 |
|
|
|
117 |
df_rosters["in_playoffs"] = df_rosters.apply(lambda x: x.team in PLAYOFFS_TEAMS[x.week], axis=1)
|
118 |
|
119 |
df_rosters = df_rosters[df_rosters.in_playoffs]
|
|
|
|
|
120 |
player_options = player_options_from_df(df_rosters)
|
121 |
return player_options
|
122 |
|