Multichem commited on
Commit
d660055
·
verified ·
1 Parent(s): 0b8948c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -7,6 +7,8 @@ purge_cache = "https://sheetdb.io/api/v1/svino07zkd6j6/cache/purge/f8fc41b2"
7
 
8
  traderater = "https://www.fantasylife.com/api/projections/v1/nfl/ratemytrade/season/update"
9
 
 
 
10
  dwain_url = "https://www.fantasylife.com/api/projections/v1/nfl/dwain/season/update"
11
  freedman_url = "https://www.fantasylife.com/api/projections/v1/nfl/freedman/season/update"
12
  agg_url = "https://www.fantasylife.com/api/projections/v1/nfl/aggregate/season/update"
@@ -26,7 +28,7 @@ headers = {
26
  'Authorization': 'Bearer 6984da1f-2c81-4140-8206-d018af38533f',
27
  }
28
 
29
- tab1, tab2, tab3, tab4, tab5, tab6 = st.tabs(['Season Long (Live Site)', 'Season Long (Dev Site)', 'Weekly', 'Game Model', 'Trade Rater', 'Purge FL API Hub Cache'])
30
 
31
  with tab1:
32
  with st.container():
@@ -138,8 +140,8 @@ with tab6:
138
  col1, col2, col3 = st.columns([3, 3, 3])
139
 
140
  with col1:
141
- st.info("Reset the API cache for the site")
142
  if st.button("Reset Cache", key='reset13'):
143
- response = requests.post(purge_cache, headers=headers)
144
  if response.status_code == 200:
145
  st.write("Uploading!")
 
7
 
8
  traderater = "https://www.fantasylife.com/api/projections/v1/nfl/ratemytrade/season/update"
9
 
10
+ ros_james_url = "https://www.fantasylife.com/api/projections/v1/nfl/james/ros/update"
11
+
12
  dwain_url = "https://www.fantasylife.com/api/projections/v1/nfl/dwain/season/update"
13
  freedman_url = "https://www.fantasylife.com/api/projections/v1/nfl/freedman/season/update"
14
  agg_url = "https://www.fantasylife.com/api/projections/v1/nfl/aggregate/season/update"
 
28
  'Authorization': 'Bearer 6984da1f-2c81-4140-8206-d018af38533f',
29
  }
30
 
31
+ tab1, tab2, tab3, tab4, tab5, tab6 = st.tabs(['Season Long (Live Site)', 'Season Long (Dev Site)', 'Weekly', 'Game Model', 'Trade Rater', 'Rest of Season'])
32
 
33
  with tab1:
34
  with st.container():
 
140
  col1, col2, col3 = st.columns([3, 3, 3])
141
 
142
  with col1:
143
+ st.info("Update Rest of Season Projections")
144
  if st.button("Reset Cache", key='reset13'):
145
+ response = requests.post(ros_james_url, headers=headers)
146
  if response.status_code == 200:
147
  st.write("Uploading!")