Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ percentages_format = {'Exposure': '{:.2%}'}
|
|
| 43 |
dk_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3']]
|
| 44 |
fd_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'P', 'C_1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'UTIL']]
|
| 45 |
|
| 46 |
-
@st.cache_data(ttl =
|
| 47 |
def init_baselines():
|
| 48 |
sh = gcservice_account.open_by_url(MLB_Data)
|
| 49 |
|
|
@@ -61,7 +61,7 @@ def init_baselines():
|
|
| 61 |
|
| 62 |
return dk_raw, fd_raw
|
| 63 |
|
| 64 |
-
@st.cache_data(ttl =
|
| 65 |
def init_DK_seed_frame():
|
| 66 |
collection = db["DK_MLB_seed_frame"]
|
| 67 |
cursor = collection.find()
|
|
@@ -72,7 +72,7 @@ def init_DK_seed_frame():
|
|
| 72 |
|
| 73 |
return DK_seed
|
| 74 |
|
| 75 |
-
@st.cache_data(ttl =
|
| 76 |
def init_FD_seed_frame():
|
| 77 |
collection = db["FD_MLB_seed_frame"]
|
| 78 |
cursor = collection.find()
|
|
|
|
| 43 |
dk_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3']]
|
| 44 |
fd_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'P', 'C_1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'UTIL']]
|
| 45 |
|
| 46 |
+
@st.cache_data(ttl = 60)
|
| 47 |
def init_baselines():
|
| 48 |
sh = gcservice_account.open_by_url(MLB_Data)
|
| 49 |
|
|
|
|
| 61 |
|
| 62 |
return dk_raw, fd_raw
|
| 63 |
|
| 64 |
+
@st.cache_data(ttl = 60)
|
| 65 |
def init_DK_seed_frame():
|
| 66 |
collection = db["DK_MLB_seed_frame"]
|
| 67 |
cursor = collection.find()
|
|
|
|
| 72 |
|
| 73 |
return DK_seed
|
| 74 |
|
| 75 |
+
@st.cache_data(ttl = 60)
|
| 76 |
def init_FD_seed_frame():
|
| 77 |
collection = db["FD_MLB_seed_frame"]
|
| 78 |
cursor = collection.find()
|