Multichem commited on
Commit
a5a6287
·
verified ·
1 Parent(s): d8541ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,7 +38,7 @@ percentages_format = {'Exposure': '{:.2%}'}
38
  dk_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3']]
39
  fd_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'P', 'C_1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'UTIL']]
40
 
41
- @st.cache_data(ttl = 60)
42
  def init_baselines():
43
  sh = gcservice_account.open_by_url(MLB_Data)
44
 
@@ -56,7 +56,7 @@ def init_baselines():
56
 
57
  return dk_raw, fd_raw
58
 
59
- @st.cache_data(ttl = 60)
60
  def init_DK_seed_frame():
61
  collection = db["DK_MLB_seed_frame"]
62
  cursor = collection.find()
@@ -67,7 +67,7 @@ def init_DK_seed_frame():
67
 
68
  return DK_seed
69
 
70
- @st.cache_data(ttl = 60)
71
  def init_FD_seed_frame():
72
  collection = db["FD_MLB_seed_frame"]
73
  cursor = collection.find()
 
38
  dk_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3']]
39
  fd_columns = [['salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'P', 'C_1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'UTIL']]
40
 
41
+ @st.cache_data(ttl = 59)
42
  def init_baselines():
43
  sh = gcservice_account.open_by_url(MLB_Data)
44
 
 
56
 
57
  return dk_raw, fd_raw
58
 
59
+ @st.cache_data(ttl = 59)
60
  def init_DK_seed_frame():
61
  collection = db["DK_MLB_seed_frame"]
62
  cursor = collection.find()
 
67
 
68
  return DK_seed
69
 
70
+ @st.cache_data(ttl = 59)
71
  def init_FD_seed_frame():
72
  collection = db["FD_MLB_seed_frame"]
73
  cursor = collection.find()