Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
297c9c5
1
Parent(s):
3965984
Set 24 hour cache ttl
Browse files- src/pages/1_Keepers.py +1 -1
src/pages/1_Keepers.py
CHANGED
@@ -26,7 +26,7 @@ def add_opinionated_keeper_value(df: pd.DataFrame):
|
|
26 |
df[f"value_{score_fmt}"] = (df["keeper_cost"] - 0.5) * LEAGUE_NUMBER_TEAMS - df[f"ecr_{score_fmt}"]
|
27 |
|
28 |
|
29 |
-
@st.cache_data
|
30 |
def load_data():
|
31 |
data = pd.read_csv(os.path.join(os.path.dirname(__file__), KEEPER_DATA_URL), index_col=0)
|
32 |
# Hack to get position, replace with better position from yahoo api in future
|
|
|
26 |
df[f"value_{score_fmt}"] = (df["keeper_cost"] - 0.5) * LEAGUE_NUMBER_TEAMS - df[f"ecr_{score_fmt}"]
|
27 |
|
28 |
|
29 |
+
@st.cache_data(ttl=60*60*24)
|
30 |
def load_data():
|
31 |
data = pd.read_csv(os.path.join(os.path.dirname(__file__), KEEPER_DATA_URL), index_col=0)
|
32 |
# Hack to get position, replace with better position from yahoo api in future
|